class Faker::LoremFlickr

def grayscale_image(size: '300x300', search_terms: ['all'], match_all: false)

Returns:
  • (String) -

Parameters:
  • match_all (Boolean) -- Add "all" as part of the URL.
  • search_terms (Array) -- Adds search terms to the image URL.
  • size (String) -- Specifies the size of image to generate.
def grayscale_image(size: '300x300', search_terms: ['all'], match_all: false)
  raise ArgumentError, 'Search terms must be specified for grayscale images' unless search_terms.any?
  build_url(size, 'g', search_terms, match_all)
end