Class: Freckle::Entry
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#<=>, first, #id, #initialize, #method_missing
Constructor Details
This class inherits a constructor from Freckle::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Freckle::Base
Class Method Details
.all(options = {}) ⇒ Object
110 111 112 |
# File 'lib/freckle.rb', line 110 def self.all( = {}) super(:entries, ) end |
Instance Method Details
#project(options = {}) ⇒ Object
113 114 115 |
# File 'lib/freckle.rb', line 113 def project( = {}) @connection.projects().detect{ |project| project.id == self.project_id } end |
#user(options = {}) ⇒ Object
116 117 118 |
# File 'lib/freckle.rb', line 116 def user( = {}) @connection.users().detect{ |user| user.id == self.user_id } end |