Class: PrintReleaf::Deposit
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
Instance Method Details
#account ⇒ Object
20
21
22
|
# File 'lib/printreleaf/deposit.rb', line 20
def account
@account ||= Account.find(account_id)
end
|
#feed ⇒ Object
24
25
26
27
|
# File 'lib/printreleaf/deposit.rb', line 24
def feed
return nil if feed_id.nil?
@feed ||= Feed.find(feed_id)
end
|
#paper_type ⇒ Object
29
30
31
32
|
# File 'lib/printreleaf/deposit.rb', line 29
def paper_type
return nil if paper_type_id.nil?
@paper_type ||= Paper::Type.find(paper_type_id)
end
|