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.
19 20 21 |
# File 'lib/freckly/project.rb', line 19 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 get_all.map {|entry| new(entry) } end |
.count ⇒ Object
8 9 10 |
# File 'lib/freckly/project.rb', line 8 def count get_all.size end |