Class: Biffbot::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/biffbot/image.rb

Instance Method Summary collapse

Methods inherited from Base

#generate_url, #parse, #parse_options

Constructor Details

#initialize(url, options = {}, token = Biffbot.token) ⇒ Hash

a new instance of Biffbot::Image

Parameters:

  • url (String)

    The url of an page with images you want to analyze

  • options (Hash) (defaults to: {})

    An hash of options

  • token (String) (defaults to: Biffbot.token)

    Override Biffbot.token with another token



10
11
12
# File 'lib/biffbot/image.rb', line 10

def initialize url, options = {}, token = Biffbot.token
  parse(token, 'image', url, options)
end