Sha256: 0d8b300cd111e531da2494852f94bf9c74d0686aab62d48ef41a69af6499ebf1
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
module PrintReleaf class Deposit < Resource path "/deposits" action :find action :list action :create action :delete property :id property :account_id property :feed_id property :date, transform_with: Transforms::Date property :pages, transform_with: Transforms::Integer property :width, transform_with: Transforms::Float property :height, transform_with: Transforms::Float property :density, transform_with: Transforms::Float property :paper_type_id def account @account ||= Account.find(account_id) end def feed return nil if feed_id.nil? @feed ||= Feed.find(feed_id) end def paper_type return nil if paper_type_id.nil? @paper_type ||= Paper::Type.find(paper_type_id) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
printreleaf-1.5.0 | lib/printreleaf/deposit.rb |
printreleaf-1.3.2 | lib/printreleaf/deposit.rb |
printreleaf-1.3.1 | lib/printreleaf/deposit.rb |
printreleaf-1.3.0 | lib/printreleaf/deposit.rb |