Class: Ubiquity::Envoi::API::Client::Requests::MediaFileCreate

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/ubiquity/envoi/api/client/requests/media_file_create.rb

Overview

Constant Summary collapse

HTTP_METHOD =
:post
HTTP_PATH =
'/media-files/media-file'
DEFAULT_PARAMETER_SEND_IN_VALUE =
:body
PARAMETERS =
[
  { :name => :name, :required => true },
  { :name => :description, :required => true },
  { :name => :file, :required => true },
  { :name => :metadata },
  { :name => :content_fieldset_id },
]

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?, #uri_request_path

Constructor Details

This class inherits a constructor from Ubiquity::Envoi::API::Client::Requests::BaseRequest

Instance Method Details

#after_process_parametersObject



18
19
20
# File 'lib/ubiquity/envoi/api/client/requests/media_file_create.rb', line 18

def after_process_parameters
  # arguments.delete(:folderId) if arguments[:folderId].to_s == '0'
end