Class: Freckly::Entry

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

Class Method Summary collapse

Instance Method Summary collapse

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(options = {})
  get_all(options).map {|entry| new(entry) }
end

.count(options = {}) ⇒ Object



8
9
10
# File 'lib/freckly/entry.rb', line 8

def count(options = {})
   get_all(options).size
end