Sha256: 46411c2564abe6b2baeb2c5172e74ccc931dbdc39bea0e2118a70660a30ce1cc

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module Fulfillment
  module Models
    class Deliverable < Model
      property :id, coerce: Integer
      property :creator_type
      property :code
      property :image_url
      property :claimed_at, coerce: ->(v) { DateTime.parse(v) rescue v }
      property :provider
      property :product_id, coerce: Integer
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fulfillment-api-1.1.9 lib/fulfillment/models/deliverable.rb
fulfillment-api-1.1.7 lib/fulfillment/models/deliverable.rb