Class: Snap::Models::Shipment

Inherits:
Hashie::Dash
  • Object
show all
Includes:
ActiveModel::Validations, Hashie::Extensions::Dash::Coercion, Hashie::Extensions::IndifferentAccess
Defined in:
lib/snap/models/shipment.rb

Overview

A representation of a Snap Shipment object.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Shipment

Returns a new instance of Shipment.



9
10
11
12
# File 'lib/snap/models/shipment.rb', line 9

def initialize(*args)
  super(*args)
  validate!
end