Class: Freckly::Entry
- Inherits:
-
Object
- Object
- Freckly::Entry
- Defined in:
- lib/freckly/entry.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entry_hashie) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(entry_hashie) ⇒ Entry
Returns a new instance of Entry.
21 22 23 |
# File 'lib/freckly/entry.rb', line 21 def initialize(entry_hashie) @entry_hashie = entry_hashie end |
Class Method Details
.all(options = {}) ⇒ Object
4 5 6 |
# File 'lib/freckly/entry.rb', line 4 def all( = {}) get_all().map {|entry| new(entry) } end |
.count(options = {}) ⇒ Object
8 9 10 |
# File 'lib/freckly/entry.rb', line 8 def count( = {}) get_all().size end |