Class: Podio::StreamActivityGroup
Overview
Instance Attribute Summary
#attributes
Class Method Summary
collapse
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param
Class Method Details
.find_by_event_id(ref_type, ref_id, event_id, options = {}) ⇒ Object
26
27
28
29
30
|
# File 'lib/podio/models/stream_activity_group.rb', line 26
def find_by_event_id(ref_type, ref_id, event_id, options={})
member Podio.connection.get { |req|
req.url("/stream/#{ref_type}/#{ref_id}/group/#{event_id}", options)
}.body
end
|
.find_by_ref(ref_type, ref_id, options = {}) ⇒ Object
20
21
22
23
24
|
# File 'lib/podio/models/stream_activity_group.rb', line 20
def find_by_ref(ref_type, ref_id, options = {})
list Podio.connection.get { |req|
req.url("/stream/#{ref_type}/#{ref_id}/activity_group", options)
}.body
end
|
.find_for_data_ref(ref_type, ref_id, data_ref_type, data_ref_id, options = {}) ⇒ Object
32
33
34
35
36
|
# File 'lib/podio/models/stream_activity_group.rb', line 32
def find_for_data_ref(ref_type, ref_id, data_ref_type, data_ref_id, options={})
member Podio.connection.get { |req|
req.url("/stream/#{ref_type}/#{ref_id}/activity_group/#{data_ref_type}/#{data_ref_id}", options)
}.body
end
|