Sha256: 08043cf34c9b1a56cf13a856edcf44b73470b6814762c7770e109ed6551a091f

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

module Payable
  class Work < Resource
    attribute :worker_id, Types::Strict::Int
    attribute :work_type_id, Types::Strict::Int
    attribute :quantity, Types::Form::Decimal
    attribute :quantity_measure, Types::QuantityMeasure
    attribute :start, Types::Form::DateTime
    attribute :end, Types::Form::DateTime.optional
    attribute :notes, Types::String.optional
    attribute :payment_id, Types::Strict::Int.optional
    attribute :payment_status, Types::PaymentStatus

    def self.collection; 'work'; end

    extend Writeable
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
payable-api-0.1.2 lib/payable/work.rb