Sha256: 558a5dba1995a3a1709a616e81001ed3a47c8bc968b0f67f15fb7f0b862c410b

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

module Pwinty

  class Image < Pwinty::Base
    attribute :id, Types::Integer
    attribute :url, Types::String
    attribute :status, Types::String
    attribute :copies, Types::Integer
    attribute :sizing, Types::String
    attribute :price, Types::Integer
    attribute :priceToUser, Types::Integer.optional
    attribute :md5Hash, Types::String.optional
    attribute :previewUrl, Types::String.optional
    attribute :thumbnailUrl, Types::String.optional
    attribute :sku, Types::String
    attribute :attributes, Types::Hash.schema(
      substrateWeight?: Types::String.optional,
      frame?: Types::String.optional,
      edge?: Types::String.optional,
      paperType?: Types::String.optional,
      frameColour?: Types::String.optional,
    ).optional
    attribute :errorMessage, Types::String.optional
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pwinty-3.0.7 lib/pwinty/image.rb
pwinty-3.0.6 lib/pwinty/image.rb