Class: BrickFTP::API::BundleDownload
- Defined in:
- lib/brick_ftp/api/bundle_download.rb
Constant Summary
Constants inherited from Base
BrickFTP::API::Base::QUERY_PARAMS
Class Method Summary collapse
Methods inherited from Base
api_path_for, attributes, create, define_api, define_readonly_attributes, define_writable_attributes, #destroy, find, inherited, #initialize, #update
Constructor Details
This class inherits a constructor from BrickFTP::API::Base
Class Method Details
.all(params, path_params = {}) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/brick_ftp/api/bundle_download.rb', line 8 def self.all(params, path_params = {}) params.symbolize_keys! undefined_attributes = params.keys - writable_attributes raise UndefinedAttributesError, undefined_attributes unless undefined_attributes.empty? data = BrickFTP::HTTPClient.new.post(api_path_for(:index, path_params), params: params) data.map { |x| new(x.symbolize_keys) } end |