Sha256: 4e7839e873b147ff350bdaee8c495dbd9de2ec28229746d5f9537f63c62d5e17

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 Bytes

Contents

module Payable
  class Worker < Resource
    attribute :display_name, Types::String
    attribute :first_name, Types::String
    attribute :last_name, Types::String
    attribute :email, Types::String
    attribute :signed_up, Types::Bool
    attribute :invite_status, Types::InviteStatus
    attribute :payable, Types::Bool

    extend Writeable
    def self.create(params = {})
      raise InvalidRequest, "display_name is a required parameter" unless params[:display_name]
      super
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
payable-api-0.1.2 lib/payable/worker.rb
payable-api-0.1.1 lib/payable/worker.rb
payable-api-0.1.0 lib/payable/worker.rb