Class: JustGiving::Donation

Inherits:
API
  • Object
show all
Defined in:
lib/just_giving/donation.rb

Instance Method Summary collapse

Methods included from Request

#get, #head, #post, #put

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

#detailsObject

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

#statusObject

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