Class: Recomiendo::Account
- Inherits:
-
Object
- Object
- Recomiendo::Account
- Defined in:
- lib/recomiendo/account.rb
Instance Method Summary collapse
- #create(params = {}) ⇒ Object
-
#initialize(client) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(client) ⇒ Account
Returns a new instance of Account.
3 4 5 |
# File 'lib/recomiendo/account.rb', line 3 def initialize(client) @client = client end |
Instance Method Details
#create(params = {}) ⇒ Object
7 8 9 |
# File 'lib/recomiendo/account.rb', line 7 def create(params={}) @client.post('/accounts', params)['account_id'] end |