Class: Freckly::Project
- Inherits:
-
Object
- Object
- Freckly::Project
- Defined in:
- lib/freckly/project.rb
Class Method Summary collapse
Instance Method Summary collapse
- #entries(options = {}) ⇒ Object
-
#initialize(project_hashie) ⇒ Project
constructor
A new instance of Project.
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
.all ⇒ Object
4 5 6 |
# File 'lib/freckly/project.rb', line 4 def all Freckly.authed_get("/api/projects.xml").projects.map {|project| new(project) } end |