Sha256: 9aa20e3a292c9f5f91b8290e59fe5333318b6486b854f7a0df74208e0c4042a5

Contents?: true

Size: 784 Bytes

Versions: 3

Compression:

Stored size: 784 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

3 entries across 3 versions & 1 rubygems

Version Path
pwinty-3.0.5 lib/pwinty/image.rb
pwinty-3.0.4 lib/pwinty/image.rb
pwinty-3.0.3 lib/pwinty/image.rb