class FreckleIO::Client::Entries

Constants

ALLOWED_KEYS
ENTRY_ENDPOINT
VALIDATOR_MODULE

Public Instance Methods

all(params = {}) click to toggle source
# File lib/freckle_io/client/entries.rb, line 28
def all(params = {})
  multiple_pages.get(ENTRY_ENDPOINT, params: entry_params(params))
end

Private Instance Methods

entry_params(params) click to toggle source
# File lib/freckle_io/client/entries.rb, line 44
def entry_params(params)
  @entry_params = Params.new(
    params,
    ALLOWED_KEYS,
    VALIDATOR_MODULE
  ).call
end
multiple_pages() click to toggle source

not implemented

def show(id)

single_page.get("#{ENTRY_ENDPOINT}/#{id}")

end

# File lib/freckle_io/client/entries.rb, line 40
def multiple_pages
  @multiple_pages ||= Request::MultiplePages.new
end