Class: JustGiving::Donation
- Inherits:
-
Object
- Object
- JustGiving::Donation
- Defined in:
- lib/just_giving/donation.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(response) ⇒ Donation
constructor
A new instance of Donation.
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
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/just_giving/donation.rb', line 3 def @message end |