Class: Ubiquity::MediaSilo::API::V3::Client::Requests::AssetCreate
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Ubiquity::MediaSilo::API::V3::Client::Requests::AssetCreate
- Defined in:
- lib/ubiquity/mediasilo/api/v3/client/requests/asset_create.rb
Overview
Constant Summary collapse
- HTTP_METHOD =
:post
- HTTP_PATH =
'/assets'
- DEFAULT_PARAMETER_SEND_IN_VALUE =
:body
- PARAMETERS =
[ { :name => :projectId, :required => true }, :folderId, :title, :description, { :name => :sourceUrl, :required => true }, :isPrivate ]
Constants inherited from BaseRequest
BaseRequest::HTTP_BASE_PATH, BaseRequest::HTTP_SUCCESS_CODE
Instance Attribute Summary
Attributes inherited from BaseRequest
#arguments, #body, #client, #default_parameter_send_in_value, #initial_arguments, #initial_options, #initialized, #missing_required_arguments, #options, #parameters, #path, #processed_parameters, #query, #response
Instance Method Summary collapse
Methods inherited from BaseRequest
#after_initialize, #base_path, #before_process_parameters, #body_arguments, #eval_http_path?, #execute, #http_client, #http_method, #http_path, #http_response, #http_success_code, #initialize, #initialize_attributes, normalize_argument_hash_keys, normalize_parameter_name, #path_arguments, process_parameter, #process_parameters, process_parameters, #query_arguments, #relative_path, #success?, #to_batchable_request, #to_batchable_request_as_json, #uri_request_path
Constructor Details
This class inherits a constructor from Ubiquity::MediaSilo::API::V3::Client::Requests::BaseRequest
Instance Method Details
#after_process_parameters ⇒ Object
19 20 21 |
# File 'lib/ubiquity/mediasilo/api/v3/client/requests/asset_create.rb', line 19 def after_process_parameters arguments.delete(:folderId) if arguments[:folderId].to_s == '0' end |