Class: LendingClub::API
- Inherits:
-
Object
- Object
- LendingClub::API
- Includes:
- Request
- Defined in:
- lib/lending_club/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
10 11 12 13 14 15 |
# File 'lib/lending_club/api.rb', line 10 def initialize(={}) = LendingClub..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/lending_club/api.rb', line 17 def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |