Class: Elmas::API
Direct Known Subclasses
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API.
Methods included from OAuth
#authorize_division, #authorize_url, #authorized?, #get_access_token, #get_refresh_token
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ API
Creates a new API
14 15 16 17 18 19 |
# File 'lib/elmas/api.rb', line 14 def initialize( = {}) = Elmas..merge() Config::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/elmas/api.rb', line 21 def config conf = {} Config::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |