Class: Podio::StreamObject

Inherits:
ActivePodio::Base show all
Defined in:
lib/podio/models/stream_object.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_all(options = {}) ⇒ Object



28
29
30
31
32
# File 'lib/podio/models/stream_object.rb', line 28

def find_all(options={})
  list Podio.connection.get { |req|
    req.url("/stream/", options)
  }.body
end

.find_all_by_app_id(app_id, options = {}) ⇒ Object



49
50
51
52
53
# File 'lib/podio/models/stream_object.rb', line 49

def find_all_by_app_id(app_id, options={})
  list Podio.connection.get { |req|
    req.url("/stream/app/#{app_id}/", options)
  }.body
end

.find_all_by_org_id(org_id, options = {}) ⇒ Object



42
43
44
45
46
# File 'lib/podio/models/stream_object.rb', line 42

def find_all_by_org_id(org_id, options={})
  list Podio.connection.get { |req|
    req.url("/stream/org/#{org_id}/v2/", options)
  }.body
end

.find_all_by_space_id(space_id, options = {}) ⇒ Object



35
36
37
38
39
# File 'lib/podio/models/stream_object.rb', line 35

def find_all_by_space_id(space_id, options={})
  list Podio.connection.get { |req|
    req.url("/stream/space/#{space_id}/v2/", options)
  }.body
end

.find_all_by_user_id(user_id, options = {}) ⇒ Object



56
57
58
59
60
# File 'lib/podio/models/stream_object.rb', line 56

def find_all_by_user_id(user_id, options={})
  list Podio.connection.get { |req|
    req.url("/stream/user/#{user_id}/", options)
  }.body
end

.find_all_personal(options = {}) ⇒ Object



68
69
70
71
72
# File 'lib/podio/models/stream_object.rb', line 68

def find_all_personal(options={})
  list Podio.connection.get { |req|
    req.url("/stream/personal/", options)
  }.body
end

.find_by_ref(ref_type, ref_id) ⇒ Object



63
64
65
# File 'lib/podio/models/stream_object.rb', line 63

def find_by_ref(ref_type, ref_id)
  member Podio.connection.get("/stream/#{ref_type}/#{ref_id}/v2").body
end