Sha256: 7727052cab01920ce533457ab6a2dbb0d774d7869182b4b73304065ba2c73210
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
module PrintReleaf class TransactionItem < Resource 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 paper_type return nil if paper_type_id.nil? @paper_type ||= Paper::Type.find(paper_type_id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
printreleaf-1.0.3 | lib/printreleaf/transaction_item.rb |
printreleaf-1.0.2 | lib/printreleaf/transaction_item.rb |
printreleaf-1.0.1 | lib/printreleaf/transaction_item.rb |