Class: Dwolla::Client

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/dwolla/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, secret) ⇒ Client

Returns a new instance of Client.



5
6
7
# File 'lib/dwolla/client.rb', line 5

def initialize(client, secret)
  @client, @secret = client, secret
end

Instance Method Details

#user(id) ⇒ Object



9
10
11
12
# File 'lib/dwolla/client.rb', line 9

def user(id)
  user_attributes_hash = get("users/#{id}")
  User.new(user_attributes_hash)
end