Class: WavixApi::V1::Call::Recordings::Search
- Inherits:
-
Object
- Object
- WavixApi::V1::Call::Recordings::Search
- Includes:
- BaseMethods
- Defined in:
- lib/wavix_api/v1/call/recordings/search.rb
Constant Summary collapse
- DATE_FIELDS =
i[from_date to_date].freeze
- DATETIME_FIELDS =
i[from_time to_time].freeze
- DATE_FORMAT =
'%Y.%m.%d'- DATETIME_FORMAT =
'%Y.%m.%dTT%H:%M:%S.000'
Constants included from BaseMethods
BaseMethods::AVAILABLE_TRANSCRIPTION_LANGUAGES, BaseMethods::BASE_DATE_FORMAT, BaseMethods::DEFAULT_HEADERS, BaseMethods::IP_REGEXP, BaseMethods::LIST_OF_DIGITS_REGEXP, BaseMethods::ONLY_DIGITS_REGEXP, BaseMethods::ONLY_ID_SCHEMA, BaseMethods::ONLY_UUID_SCHEMA, BaseMethods::PAGINATION_SCHEMA
Instance Attribute Summary
Attributes included from BaseMethods
Class Method Summary collapse
Methods included from BaseMethods
#call, #delete, #download, #file_extention, #format_file, #get, #initialize, #patch, #post, #put, #raise_error, #stringify_dates!, #validate!, #validate_dates!
Class Method Details
.call(params = {}) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/wavix_api/v1/call/recordings/search.rb', line 36 def call(params = {}) instance = new(params) instance.validate! instance.validate_dates!(DATE_FIELDS + DATETIME_FIELDS) instance.stringify_dates!( instance.params, fields: DATE_FIELDS, format: DATE_FORMAT ) instance.stringify_dates!( instance.params, fields: DATETIME_FIELDS, format: DATETIME_FORMAT ) instance.get('v1/recordings') end |