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
99 100 101 |
# File 'lib/freckle.rb', line 99 def self.all( = {}) super(:entries, ) end |
Instance Method Details
#project(options = {}) ⇒ Object
102 103 104 |
# File 'lib/freckle.rb', line 102 def project( = {}) @connection.projects().detect{ |project| project.id == self.project_id } end |
#user(options = {}) ⇒ Object
105 106 107 |
# File 'lib/freckle.rb', line 105 def user( = {}) @connection.users().detect{ |user| user.id == self.user_id } end |