Class: Spritpreisrechner::PaymentArrengement
- Inherits:
-
Object
- Object
- Spritpreisrechner::PaymentArrengement
- Defined in:
- lib/spritpreisrechner/payment_arrangement.rb
Instance Attribute Summary collapse
-
#club_card ⇒ Object
readonly
Returns the value of attribute club_card.
-
#cooperative ⇒ Object
readonly
Returns the value of attribute cooperative.
Instance Method Summary collapse
- #club_card? ⇒ Boolean
- #cooperative? ⇒ Boolean
-
#initialize(payment_arrengement) ⇒ PaymentArrengement
constructor
A new instance of PaymentArrengement.
Constructor Details
#initialize(payment_arrengement) ⇒ PaymentArrengement
Returns a new instance of PaymentArrengement.
5 6 7 8 |
# File 'lib/spritpreisrechner/payment_arrangement.rb', line 5 def initialize(payment_arrengement) @cooperative = payment_arrengement[:cooperative] @club_card = payment_arrengement[:clubCard] end |
Instance Attribute Details
#club_card ⇒ Object (readonly)
Returns the value of attribute club_card.
3 4 5 |
# File 'lib/spritpreisrechner/payment_arrangement.rb', line 3 def club_card @club_card end |
#cooperative ⇒ Object (readonly)
Returns the value of attribute cooperative.
3 4 5 |
# File 'lib/spritpreisrechner/payment_arrangement.rb', line 3 def cooperative @cooperative end |
Instance Method Details
#club_card? ⇒ Boolean
14 15 16 |
# File 'lib/spritpreisrechner/payment_arrangement.rb', line 14 def club_card? @club_card == true end |
#cooperative? ⇒ Boolean
10 11 12 |
# File 'lib/spritpreisrechner/payment_arrangement.rb', line 10 def cooperative? @cooperative == true end |