Class: Podio::LinkedAccount
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
.create(attributes) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/podio/models/linked_account.rb', line 20
def create(attributes)
response = Podio.connection.post do |req|
req.url '/linked_account/'
req.body = attributes
end
member response.body
end
|
.delete(id) ⇒ Object
29
30
31
|
# File 'lib/podio/models/linked_account.rb', line 29
def delete(id)
Podio.connection.delete("/linked_account/#{id}").status
end
|
.find_all(options = {}) ⇒ Object
14
15
16
17
18
|
# File 'lib/podio/models/linked_account.rb', line 14
def find_all(options = {})
list Podio.connection.get { |req|
req.url("/linked_account/", options)
}.body
end
|
.update_options(id, attributes) ⇒ Object
33
34
35
36
37
38
|
# File 'lib/podio/models/linked_account.rb', line 33
def update_options(id, attributes)
Podio.connection.put do |req|
req.url "/linked_account/#{id}/options"
req.body = attributes
end
end
|