Sha256: 39a69fd2dad6538c21b5714484415d6d9528c83e411793b30d5e3fce5b4ffb35

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

require "searchbing"

module Photomosaic
  module SearchEngine
    class Bing
      def initialize(api_key, results)
        @client = ::Bing.new(api_key, results, "Image")
      end

      def get_image_list(keyword)
        @client.search(keyword)[0][:Image].map { |image| image[:MediaUrl] }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
photomosaic-0.0.1 lib/photomosaic/search_engine/bing.rb