Class: Amiando::Public::Event
- Defined in:
- lib/amiando/public/event.rb
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
-
.find(id) ⇒ Public::Event
Query the public api.
-
.search(options = {}) ⇒ Result
Query the public api.
Methods inherited from Resource
#==, #extract_attributes_from, #initialize, method_missing, #populate_create
Methods included from Attributes
#[], #id, included, #method_missing, #respond_to?, #type
Methods included from Autorun
Constructor Details
This class inherits a constructor from Amiando::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Amiando::Attributes
Class Method Details
.find(id) ⇒ Public::Event
Query the public api. See the documentation [missing] for possible filter parameters.
34 35 36 37 38 39 |
# File 'lib/amiando/public/event.rb', line 34 def self.find(id) object = new get object, "/api/public/event/#{id}" object end |
.search(options = {}) ⇒ Result
Query the public api.
Possible filter parameters are:
-
start_date
-
end_date
-
language
-
offset
19 20 21 22 23 24 25 |
# File 'lib/amiando/public/event.rb', line 19 def self.search( = {}) object = Result.new do |response_body| response_body['ids'] end get object, '/api/public/event/findPublic', :params => object end |