Class: Amex::LoyaltyProgramme

Inherits:
Object
  • Object
show all
Defined in:
lib/amex/loyalty_programme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#balanceObject

Returns the value of attribute balance.



3
4
5
# File 'lib/amex/loyalty_programme.rb', line 3

def balance
  @balance
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/amex/loyalty_programme.rb', line 3

def name
  @name
end