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.
13 14 15 16 |
# File 'lib/ebisu/models/shipping.rb', line 13 def initialize(shipping) @code = shipping.dig('code') @name = shipping.dig('name') end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/ebisu/models/shipping.rb', line 7 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/ebisu/models/shipping.rb', line 11 def name @name end |