Class: AlphaCard::Shipping
- Inherits:
-
AlphaCardObject
- Object
- AlphaCardObject
- AlphaCard::Shipping
- Defined in:
- lib/alpha_card/objects/shipping.rb
Overview
Implementation of Alpha Card Services order shipping information. Contains all the shipping information (address, city, zip, etc).
Instance Method Summary collapse
-
#filled_attributes ⇒ Hash
Overloaded
filled_attributes
method fromAlphaCard::AlphaCardObject
.
Instance Method Details
#filled_attributes ⇒ Hash
Overloaded filled_attributes
method from AlphaCard::AlphaCardObject
. All attribute names of the Alpha Card Shipping object must start with “shipping_” prefix.
31 32 33 |
# File 'lib/alpha_card/objects/shipping.rb', line 31 def filled_attributes Hash[super.map { |k, v| ["shipping_#{k}".to_sym, v] }] end |