Class: Podio::Batch
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(id) ⇒ Object
23
24
25
|
# File 'lib/podio/models/batch.rb', line 23
def find(id)
member Podio.connection.get("/batch/#{id}").body
end
|
.find_all(options = {}) ⇒ Object
28
29
30
31
32
|
# File 'lib/podio/models/batch.rb', line 28
def find_all(options={})
list Podio.connection.get { |req|
req.url("/batch/", options)
}.body
end
|
.find_running(ref_type, ref_id, plugin) ⇒ Object
35
36
37
|
# File 'lib/podio/models/batch.rb', line 35
def find_running(ref_type, ref_id, plugin)
list Podio.connection.get("/batch/#{ref_type}/#{ref_id}/#{plugin}/running/").body
end
|