Sha256: 49c61cce6a9c689deaabc5ac8a1fc4417015134039526fcd4bfba471af237301

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

module PrintReleaf
  class Server < Resource
    path "/servers"

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

    property :id
    property :account_id
    property :type
    property :created_at, transform_with: Transforms::Date
    property :url
    property :username
    property :password
    property :contact

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
printreleaf-1.5.0 lib/printreleaf/server.rb
printreleaf-1.3.2 lib/printreleaf/server.rb
printreleaf-1.3.1 lib/printreleaf/server.rb
printreleaf-1.3.0 lib/printreleaf/server.rb
printreleaf-1.0.3 lib/printreleaf/server.rb