Sha256: ba4652bffe7cc148ab1ca4d024279faa69df0c3950af3fded6f8aae31820bb1a
Contents?: true
Size: 650 Bytes
Versions: 21
Compression:
Stored size: 650 Bytes
Contents
class OrderInformation include Mongoid::Document include Mongoid::Attributes::Dynamic field :orderNumber, as: :order_number, type: String field :fills, type: Integer field :quantityOrdered, as: :quantity_ordered, type: Hash field :orderExpirationDateTime, as: :order_expiration_date_time, type: Integer field :orderDateTime, as: :order_date_time, type: Integer belongs_to :provider def shift_dates(date_diff) self.orderDateTime = self.orderDateTime.nil? ? nil : self.orderDateTime + date_diff self.orderExpirationDateTime = self.orderExpirationDateTime.nil? ? nil : self.orderExpirationDateTime + date_diff end end
Version data entries
21 entries across 21 versions & 1 rubygems