Class: Megaplan::Event
- Inherits:
-
Api
- Object
- Api
- Megaplan::Event
show all
- Defined in:
- lib/megaplan/event.rb
Instance Attribute Summary
Attributes inherited from Api
#endpoint, #login, #password
Class Method Summary
collapse
Methods inherited from Api
#auth_params, #auth_path, #authenticate, bad_response, card, check_response, create, #create_signature, custom_get, custom_post, delete, edit, find, #get_headers, #initial_path, #initialize, list, make_get_req, make_post_req, parsed_body, query_path, resource_path, save, to_query
Constructor Details
This class inherits a constructor from Megaplan::Api
Class Method Details
.categories(client, query = {}) ⇒ Object
11
12
13
|
# File 'lib/megaplan/event.rb', line 11
def categories(client, query = {})
custom_get(client, class_endpoint + "categories.api", query)['categories'] rescue []
end
|
.class_endpoint ⇒ Object
7
8
9
|
# File 'lib/megaplan/event.rb', line 7
def class_endpoint
"/BumsTimeApiV01/Event/"
end
|
.finish(client, query = {}) ⇒ Object
19
20
21
|
# File 'lib/megaplan/event.rb', line 19
def finish(client, query = {})
custom_post(client, class_endpoint + "finish.api", query)
end
|
.places(client) ⇒ Object
23
24
25
|
# File 'lib/megaplan/event.rb', line 23
def places(client)
custom_get(client, class_endpoint + "places.api")["places"] rescue []
end
|
.update(client, query = {}) ⇒ Object
15
16
17
|
# File 'lib/megaplan/event.rb', line 15
def update(client, query = {})
custom_post(client, class_endpoint + "update.api", query)
end
|