Class: Podio::ExternalFile
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::ExternalFile
- Defined in:
- lib/podio/models/external_file.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary collapse
- .create_from_external_file_id(linked_account_id, external_file_id) ⇒ Object
- .find_all_for_linked_account(linked_account_id, options = {}) ⇒ Object
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, list, member, #new_record?, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.create_from_external_file_id(linked_account_id, external_file_id) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/podio/models/external_file.rb', line 20 def create_from_external_file_id(linked_account_id, external_file_id) response = Podio.client.connection.post do |req| req.url "/file/linked_account/#{linked_account_id}/" req.body = { :external_file_id => external_file_id } end member response.body end |
.find_all_for_linked_account(linked_account_id, options = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/podio/models/external_file.rb', line 14 def find_all_for_linked_account(linked_account_id, ={}) list Podio.connection.get { |req| req.url("/file/linked_account/#{linked_account_id}/", ) }.body end |