Class: PrintReleaf::QuoteItem

Inherits:
Resource
  • Object
show all
Defined in:
lib/printreleaf/quote_item.rb

Instance Attribute Summary

Attributes inherited from Resource

#copy, #owner

Instance Method Summary collapse

Methods inherited from Resource

action, actions, #changes, #compact_inspect, #delete, #deleted?, #find, #initialize, #inspect, path, #reset, #to_s, #uri, uri

Constructor Details

This class inherits a constructor from PrintReleaf::Resource

Instance Method Details

#paper_typeObject



9
10
11
12
# File 'lib/printreleaf/quote_item.rb', line 9

def paper_type
  return nil if paper_type_id.nil?
  @paper_type ||= Paper::Type.find(paper_type_id)
end