Class: JustGiving::Client
- Inherits:
-
Object
- Object
- JustGiving::Client
- Defined in:
- lib/justgiving_client/client.rb
Overview
The main client, through which you interact with JustGiving
Instance Method Summary collapse
-
#donation(id) ⇒ Object
Get a donation by it’s id.
-
#initialize(options) ⇒ Client
constructor
Create a spangly new client instance.
-
#user(email) ⇒ Object
Get a user by their email.
Constructor Details
#initialize(options) ⇒ Client
Create a spangly new client instance
Example:
>> client = JustGiving::Client.new(:api_key => "my_key")
=> #<JustGiving::Client:0x000001009c6f98 @api_key="my_key">
9 10 11 |
# File 'lib/justgiving_client/client.rb', line 9 def initialize() @api_key = [:api_key] end |