Class: Cafmal::Event

Inherits:
Resource show all
Defined in:
lib/cafmal/event.rb

Instance Attribute Summary

Attributes inherited from Resource

#cafmal_api_url, #decoded_token, #query, #token

Instance Method Summary collapse

Methods inherited from Resource

#create, #demodulize, #destroy, #initialize, #new, #show, #update

Constructor Details

This class inherits a constructor from Cafmal::Resource

Instance Method Details

#list(age = nil, duration = 3600) ⇒ Object



6
7
8
9
10
# File 'lib/cafmal/event.rb', line 6

def list(age = nil, duration = 3600)
  @query = age.nil? ? "" : "?query[age]=#{age}&query[duration]=#{duration}"

  super
end