Sha256: 063f1d6c24880d2fe8bc77288e2fc73f232ab91f30c4881235d0c68b84de5d93

Contents?: true

Size: 348 Bytes

Versions: 7

Compression:

Stored size: 348 Bytes

Contents

module PrintReleaf
  class Invitation < Resource
    path "/invitations"

    action :find
    action :list
    action :create
    action :delete

    property :id
    property :account_id
    property :email
    property :created_at, transform_with: Transforms::Date

    def account
      @account ||= Account.find(account_id)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
printreleaf-1.5.0 lib/printreleaf/invitation.rb
printreleaf-1.3.2 lib/printreleaf/invitation.rb
printreleaf-1.3.1 lib/printreleaf/invitation.rb
printreleaf-1.3.0 lib/printreleaf/invitation.rb
printreleaf-1.0.3 lib/printreleaf/invitation.rb
printreleaf-1.0.2 lib/printreleaf/invitation.rb
printreleaf-1.0.1 lib/printreleaf/invitation.rb