class Photomosaic::SearchEngine::Bing
Public Class Methods
new(api_key, results)
click to toggle source
# File lib/photomosaic/search_engine/bing.rb, line 6 def initialize(api_key, results) @client = ::Bing.new(api_key, results, "Image") end
Public Instance Methods
get_image_list(keyword)
click to toggle source
# File lib/photomosaic/search_engine/bing.rb, line 10 def get_image_list(keyword) @client.search(keyword)[0][:Image].map { |image| image[:MediaUrl] } end