Class: Freckle::Project

Inherits:
Base
  • Object
show all
Defined in:
lib/freckle.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

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(options = {})
  super(:projects, options)
end

Instance Method Details

#entries(options = {}) ⇒ Object



102
103
104
105
106
# File 'lib/freckle.rb', line 102

def entries(options = {})
  projects = (options.delete(:projects) || [])
  projects.push(self.id) unless projects.include?(self.id)
  @connection.entries(options.merge(:projects => projects))
end