Class: Tweetsentiments::API

Inherits:
Object
  • Object
show all
Includes:
Connection, Request
Defined in:
lib/tweetsentiments/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ API

Returns a new instance of API.



7
8
9
10
11
12
# File 'lib/tweetsentiments/api.rb', line 7

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