Class: ShipHero::Base
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- ShipHero::Base
- Includes:
- Hashie::Extensions::Dash::Coercion, Hashie::Extensions::Dash::PropertyTranslation
- Defined in:
- lib/ship_hero/models/base.rb
Direct Known Subclasses
Image, Order, OrderHistory, OrderLineItem, OrderLineItemProductShot, OrderNote, OrderShippingAddress, OrderShippingLines, Product, ProductVariant, Requests::GetOrder, Requests::GetOrders, Requests::GetProduct, Requests::GetShipment, Responses::CreateOrder, Responses::General, Responses::GetOrder, Responses::GetWebhooks, Shipment, Webhook
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(hash = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/ship_hero/models/base.rb', line 8 def initialize(hash = {}) # ensure we symbolize keys super(Hashie.symbolize_keys!(hash)) end |