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) ⇒ LoyaltyProgramme
constructor
A new instance of LoyaltyProgramme.
Constructor Details
#initialize(name, balance) ⇒ LoyaltyProgramme
Returns a new instance of LoyaltyProgramme.
5 6 7 8 |
# File 'lib/amex/loyalty_programme.rb', line 5 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 |