Class: Freckly::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/freckly/project.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_hashie) ⇒ Project

Returns a new instance of Project.



9
10
11
# File 'lib/freckly/project.rb', line 9

def initialize(project_hashie)
  @project_hashie = project_hashie
end

Class Method Details

.allObject



4
5
6
# File 'lib/freckly/project.rb', line 4

def all
  Freckly.authed_get("/api/projects.xml").projects.map {|project| new(project) }
end

Instance Method Details

#entries(options = {}) ⇒ Object



13
14
15
# File 'lib/freckly/project.rb', line 13

def entries(options={})
  Entry.all(options.merge(:projects => id))
end