Sha256: 109cd25d4b727e7fcf9f81ea7ca1b0a8c9c4d61a8667d93c9fc4315e132df3a7

Contents?: true

Size: 336 Bytes

Versions: 7

Compression:

Stored size: 336 Bytes

Contents

module PrintReleaf
  class User < Resource
    path "/users"

    action :find
    action :list
    action :delete

    property :id
    property :account_id
    property :name
    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/user.rb
printreleaf-1.3.2 lib/printreleaf/user.rb
printreleaf-1.3.1 lib/printreleaf/user.rb
printreleaf-1.3.0 lib/printreleaf/user.rb
printreleaf-1.0.3 lib/printreleaf/user.rb
printreleaf-1.0.2 lib/printreleaf/user.rb
printreleaf-1.0.1 lib/printreleaf/user.rb