Class: MercuryParser::Client

Inherits:
Object
  • Object
show all
Includes:
API::Content, Connection, Request
Defined in:
lib/mercury_parser/client.rb

Instance Method Summary collapse

Methods included from API::Content

#parse

Methods included from Request

#get

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



10
11
12
13
14
15
# File 'lib/mercury_parser/client.rb', line 10

def initialize(options = {})
  options = MercuryParser.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end