Class: WavixApi::V1::BaseFind
- Inherits:
-
Object
- Object
- WavixApi::V1::BaseFind
- Includes:
- BaseMethods
- Defined in:
- lib/wavix_api/v1/base_find.rb
Direct Known Subclasses
Mydids::Find, SubOrganizations::Find, Trunks::Find, VoiceCampaigns::Find, WavixApi::V2::BaseFind
Constant Summary
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
Instance Method Summary collapse
Methods included from BaseMethods
#delete, #download, #file_extention, #format_file, #get, #initialize, #patch, #post, #put, #raise_error, #stringify_dates!, #validate!, #validate_dates!
Class Method Details
.call(id = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/wavix_api/v1/base_find.rb', line 11 def call(id = nil) instance = new({ id: id }) instance.validate! instance.get([path, instance.id].join('/')) end |
Instance Method Details
#call ⇒ Object
26 27 28 |
# File 'lib/wavix_api/v1/base_find.rb', line 26 def call self.class.call(id) end |