Class: Podio::StreamActivityGroup

Inherits:
ActivePodio::Base show all
Defined in:
lib/podio/models/stream_activity_group.rb

Overview

Instance Attribute Summary

Attributes inherited from ActivePodio::Base

#attributes

Class Method Summary collapse

Methods inherited from ActivePodio::Base

#==, #[], #[]=, #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

Constructor Details

This class inherits a constructor from ActivePodio::Base

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