Class: Recomiendo::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/recomiendo/account.rb

Instance Method Summary collapse

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