Class: C2eCore::Drops::PaymentGateDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/payment_gate_drop.rb
Instance Method Summary collapse
-
#enum ⇒ String
-
The enum value of the PaymentGate, e.g.
-
-
#initialize(payment_gate) ⇒ PaymentGateDrop
constructor
A new instance of PaymentGateDrop.
-
#label ⇒ String
-
The localised name of the PaymentGate, e.g.
-
Constructor Details
#initialize(payment_gate) ⇒ PaymentGateDrop
Returns a new instance of PaymentGateDrop.
6 7 8 9 |
# File '/build/app/mailers/c2e_core/drops/payment_gate_drop.rb', line 6 def initialize(payment_gate) super() @payment_gate = payment_gate end |
Instance Method Details
#enum ⇒ String
Returns - The enum value of the PaymentGate, e.g. CASH
, CREDIT
, WALLET_CREDIT
, or KIOSK_GATE
. For a complete list, check API.
13 14 15 |
# File '/build/app/mailers/c2e_core/drops/payment_gate_drop.rb', line 13 def enum @payment_gate.enum_value end |
#label ⇒ String
Returns - The localised name of the PaymentGate, e.g. "Cash"
, "Credit Card"
, "Wallet Credit"
, or Kiosk Gate
. For a complete list, check API.
19 20 21 |
# File '/build/app/mailers/c2e_core/drops/payment_gate_drop.rb', line 19 def label @payment_gate.to_s end |