Sha256: 2e52528a3ec30438019673a7d6b81ccd39497a2a92db5eafe26e70f7781d9baf

Contents?: true

Size: 426 Bytes

Versions: 7

Compression:

Stored size: 426 Bytes

Contents

module PrintReleaf
  module Paper
    class Type < Resource
      path "/paper/types"

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

      property :id
      property :account_id
      property :name
      property :density, transform_with: Transforms::Float

      def account
        return nil if account_id.nil?
        @account ||= Account.find(account_id)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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