Class: C2eCore::Drops::PaymentGateDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/payment_gate_drop.rb

Instance Method Summary collapse

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

#enumString

Returns - The enum value of the PaymentGate, e.g. CASH, CREDIT, WALLET_CREDIT, or KIOSK_GATE. For a complete list, check API.

Returns:

  • (String)
    • 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

#labelString

Returns - The localised name of the PaymentGate, e.g. "Cash", "Credit Card", "Wallet Credit", or Kiosk Gate. For a complete list, check API.

Returns:

  • (String)
    • 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