Class: PrintReleaf::Certificate
- Defined in:
- lib/printreleaf/certificate.rb
Instance Attribute Summary
Attributes inherited from Resource
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
#account ⇒ Object
18 19 20 |
# File 'lib/printreleaf/certificate.rb', line 18 def account @account ||= Account.find(account_id) end |
#project ⇒ Object
22 23 24 |
# File 'lib/printreleaf/certificate.rb', line 22 def project @project ||= self[:project] || Forestry::Project.find(project_id) end |