Class: MyActiveMerchants::CardSerializer
- Inherits:
-
Struct
- Object
- Struct
- MyActiveMerchants::CardSerializer
- Defined in:
- app/my_lib/my_active_merchants/card_serializer.rb
Instance Attribute Summary collapse
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
- #expiration_month ⇒ Object
- #expiration_year ⇒ Object
- #id ⇒ Object
- #last_digits ⇒ Object
- #name ⇒ Object
Instance Attribute Details
#gateway ⇒ Object
Returns the value of attribute gateway
3 4 5 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 3 def gateway @gateway end |
#param ⇒ Object
Returns the value of attribute param
3 4 5 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 3 def param @param end |
Instance Method Details
#expiration_month ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 34 def expiration_month if omise? param.expiration_month elsif gb_primepay? param.expiration_month else raise_error end end |
#expiration_year ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 44 def expiration_year if omise? param.expiration_year elsif gb_primepay? param.expiration_year else raise_error end end |
#id ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 4 def id if omise? param.id elsif gb_primepay? param.token else raise_error end end |
#last_digits ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 24 def last_digits if omise? param.last_digits elsif gb_primepay? param.last_digits else raise_error end end |
#name ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'app/my_lib/my_active_merchants/card_serializer.rb', line 14 def name if omise? param.name elsif gb_primepay? param.name else raise_error end end |