Class: Podio::CalendarEvent
Instance Attribute Summary
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary
collapse
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, list, member, #new_record?, #persisted?, property, #to_param
Class Method Details
.find_all(options = {}) ⇒ Object
16
17
18
19
20
|
# File 'lib/podio/models/calendar_event.rb', line 16
def find_all(options = {})
list Podio.connection.get { |req|
req.url('/calendar/', options)
}.body
end
|
.find_all_for_space(space_id, options = {}) ⇒ Object
22
23
24
25
26
|
# File 'lib/podio/models/calendar_event.rb', line 22
def find_all_for_space(space_id, options={})
list Podio.connection.get { |req|
req.url("/calendar/space/#{space_id}/", options)
}.body
end
|
.find_personal_summary ⇒ Object
49
50
51
52
53
54
|
# File 'lib/podio/models/calendar_event.rb', line 49
def find_personal_summary
response = Podio.connection.get("/calendar/personal/summary").body
response['today']['events'] = list(response['today']['events'])
response['upcoming']['events'] = list(response['upcoming']['events'])
response
end
|
.find_summary ⇒ Object
28
29
30
31
32
33
|
# File 'lib/podio/models/calendar_event.rb', line 28
def find_summary
response = Podio.connection.get("/calendar/summary").body
response['today']['events'] = list(response['today']['events'])
response['upcoming']['events'] = list(response['upcoming']['events'])
response
end
|
.find_summary_for_org(org_id) ⇒ Object
42
43
44
45
46
47
|
# File 'lib/podio/models/calendar_event.rb', line 42
def find_summary_for_org(org_id)
response = Podio.connection.get("/calendar/org/#{org_id}/summary").body
response['today']['events'] = list(response['today']['events'])
response['upcoming']['events'] = list(response['upcoming']['events'])
response
end
|
.find_summary_for_space(space_id) ⇒ Object
35
36
37
38
39
40
|
# File 'lib/podio/models/calendar_event.rb', line 35
def find_summary_for_space(space_id)
response = Podio.connection.get("/calendar/space/#{space_id}/summary").body
response['today']['events'] = list(response['today']['events'])
response['upcoming']['events'] = list(response['upcoming']['events'])
response
end
|