Class: PrintReleaf::Transaction
- Inherits:
-
Resource
- Object
- Hashie::Trash
- Resource
- PrintReleaf::Transaction
show all
- Defined in:
- lib/printreleaf/transaction.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
Instance Method Details
#account ⇒ Object
19
20
21
|
# File 'lib/printreleaf/transaction.rb', line 19
def account
@account ||= Account.find(account_id)
end
|
#certificate ⇒ Object
27
28
29
|
# File 'lib/printreleaf/transaction.rb', line 27
def certificate
@certificate ||= Certificate.find(certificate_id)
end
|
#project ⇒ Object
23
24
25
|
# File 'lib/printreleaf/transaction.rb', line 23
def project
@project ||= Forestry::Project.find(project_id)
end
|
#quote ⇒ Object
31
32
33
34
|
# File 'lib/printreleaf/transaction.rb', line 31
def quote
return nil if quote_id.nil?
@quote ||= Quote.find(quote_id)
end
|