Sha256: a650b11350309005d38e3b3c979790130edfe315e72421e88c61a8a9cbc60eb8
Contents?: true
Size: 420 Bytes
Versions: 6
Compression:
Stored size: 420 Bytes
Contents
require 'pwinty/photo_status' module Pwinty class OrderStatus < Pwinty::Base attribute :id, Types::Coercible::Integer attribute :isValid, Types::Bool attribute :generalErrors, Types::Array.of(Types::String) attribute :photos, Types::Array.of(Pwinty::PhotoStatus) def self.check(id) response = Pwinty.conn.get("orders/#{id}/SubmissionStatus") new(response.body['data']) end end end
Version data entries
6 entries across 6 versions & 1 rubygems