Class: JustGiving::Donation
Instance Method Summary collapse
-
#details ⇒ Object
Get the details of a specific donation.
-
#initialize(id) ⇒ Donation
constructor
A new instance of Donation.
-
#status ⇒ Object
Get the status of a specific donation.
Methods included from Request
Constructor Details
#initialize(id) ⇒ Donation
Returns a new instance of Donation.
3 4 5 |
# File 'lib/just_giving/donation.rb', line 3 def initialize(id) @id = id end |
Instance Method Details
#details ⇒ Object
Get the details of a specific donation
8 9 10 |
# File 'lib/just_giving/donation.rb', line 8 def details get("v1/donation/#{@id}") end |
#status ⇒ Object
Get the status of a specific donation
13 14 15 |
# File 'lib/just_giving/donation.rb', line 13 def status get("v1/donation/#{@id}/status") end |