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