Class: JustGiving::Donation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Donation

Returns a new instance of Donation.



5
6
7
# File 'lib/just_giving/donation.rb', line 5

def initialize(response)
  @message = response["message"]
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/just_giving/donation.rb', line 3

def message
  @message
end