Class: Lvmama::API
- Inherits:
-
Object
- Object
- Lvmama::API
- Includes:
- Connection, Request
- Defined in:
- lib/lvmama-api/api.rb
Direct Known Subclasses
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API.
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ API
Creates a new API
11 12 13 14 15 16 |
# File 'lib/lvmama-api/api.rb', line 11 def initialize(={}) = Lvmama..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/lvmama-api/api.rb', line 18 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |