Sha256: c9715ecf423f401d2df89d467c5deb92f59b5483b4bbfbf2ca253fb4fabbca03

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
printreleaf-1.0.2 lib/printreleaf/server.rb
printreleaf-1.0.1 lib/printreleaf/server.rb