Class: Ebisu::Shipping
- Inherits:
-
Object
- Object
- Ebisu::Shipping
- Defined in:
- lib/ebisu/models/shipping.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(shipping) ⇒ Shipping
constructor
A new instance of Shipping.
Constructor Details
#initialize(shipping) ⇒ Shipping
Returns a new instance of Shipping.
11 12 13 14 |
# File 'lib/ebisu/models/shipping.rb', line 11 def initialize(shipping) @code = shipping.dig('Code') @name = shipping.dig('Name') end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/ebisu/models/shipping.rb', line 5 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/ebisu/models/shipping.rb', line 9 def name @name end |