Class: PrintReleaf::Certificate

Inherits:
Resource
  • Object
show all
Defined in:
lib/printreleaf/certificate.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

#accountObject



18
19
20
# File 'lib/printreleaf/certificate.rb', line 18

def 
  @account ||= Account.find()
end

#projectObject



22
23
24
# File 'lib/printreleaf/certificate.rb', line 22

def project
  @project ||= self[:project] || Forestry::Project.find(project_id)
end