Class: Amex::LoyaltyProgramme
- Inherits:
-
Object
- Object
- Amex::LoyaltyProgramme
- Defined in:
- lib/amex/loyalty_programme.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, balance) ⇒ Amex::LoyaltyProgramme
constructor
Generates an Amex::LoyaltyProgramme object from a programme name and balance, grabbed from the XML.
Constructor Details
#initialize(name, balance) ⇒ Amex::LoyaltyProgramme
Generates an Amex::LoyaltyProgramme object from a programme name and balance, grabbed from the XML
13 14 15 16 |
# File 'lib/amex/loyalty_programme.rb', line 13 def initialize(name, balance) @name = name @balance = balance end |
Instance Attribute Details
#balance ⇒ Object
Returns the value of attribute balance.
3 4 5 |
# File 'lib/amex/loyalty_programme.rb', line 3 def balance @balance end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/amex/loyalty_programme.rb', line 3 def name @name end |