Class: Freckle::Project
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(:projects, ) end |
Instance Method Details
#entries(options = {}) ⇒ Object
102 103 104 105 106 |
# File 'lib/freckle.rb', line 102 def entries( = {}) projects = (.delete(:projects) || []) projects.push(self.id) unless projects.include?(self.id) @connection.entries(.merge(:projects => projects)) end |