Class: Podio::StreamObject
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, #initialize_attributes, list, member, #new_record?, output_attribute_as_json, #persisted?, property, #to_param
Class Method Details
.find_all(options = {}) ⇒ Object
26
27
28
29
30
|
# File 'lib/podio/models/stream_object.rb', line 26
def find_all(options={})
list Podio.connection.get { |req|
req.url("/stream/v2/", options)
}.body
end
|
.find_all_by_app_id(app_id, options = {}) ⇒ Object
44
45
46
47
48
|
# File 'lib/podio/models/stream_object.rb', line 44
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
38
39
40
41
42
|
# File 'lib/podio/models/stream_object.rb', line 38
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
32
33
34
35
36
|
# File 'lib/podio/models/stream_object.rb', line 32
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
50
51
52
53
54
|
# File 'lib/podio/models/stream_object.rb', line 50
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
60
61
62
63
64
|
# File 'lib/podio/models/stream_object.rb', line 60
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
56
57
58
|
# File 'lib/podio/models/stream_object.rb', line 56
def find_by_ref(ref_type, ref_id)
member Podio.connection.get("/stream/#{ref_type}/#{ref_id}/v2").body
end
|