bandwidth-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +27 -27
- data/README.md +18 -59
- data/lib/bandwidth/api_helper.rb +4 -0
- data/lib/bandwidth/client.rb +1 -1
- data/lib/bandwidth/configuration.rb +2 -2
- data/lib/bandwidth/messaging_lib/messaging/client.rb +1 -1
- data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/voice_lib/bxml/verbs/record.rb +26 -0
- data/lib/bandwidth/voice_lib/voice.rb +6 -5
- data/lib/bandwidth/voice_lib/voice/client.rb +1 -1
- data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +178 -98
- data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +1 -1
- data/lib/bandwidth/voice_lib/voice/models/api_call_response.rb +67 -40
- data/lib/bandwidth/voice_lib/voice/models/direction_enum.rb +17 -0
- data/lib/bandwidth/voice_lib/voice/models/duration.rb +78 -0
- data/lib/bandwidth/voice_lib/voice/models/file_format_enum.rb +17 -0
- data/lib/bandwidth/voice_lib/voice/models/recording_metadata_response.rb +152 -0
- data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +2 -2
- data/lib/bandwidth/voice_lib/voice/models/temporal_unit.rb +62 -0
- data/lib/bandwidth/voice_lib/voice/models/transcription_status_enum.rb +20 -0
- metadata +15 -13
- data/lib/bandwidth/voice_lib/voice/exceptions/bandwidth_exception.rb +0 -51
- data/lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb +0 -49
- data/lib/bandwidth/voice_lib/voice/exceptions/bandwidth_rate_limit_error_exception.rb +0 -56
- data/lib/bandwidth/voice_lib/voice/models/bandwidth_callback_message_voice.rb +0 -98
- data/lib/bandwidth/voice_lib/voice/models/field_error.rb +0 -44
@@ -1,44 +0,0 @@
|
|
1
|
-
# bandwidth
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module Bandwidth
|
7
|
-
# FieldError Model.
|
8
|
-
class FieldError < BaseModel
|
9
|
-
# TODO: Write general description for this method
|
10
|
-
# @return [String]
|
11
|
-
attr_accessor :field_name
|
12
|
-
|
13
|
-
# TODO: Write general description for this method
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :description
|
16
|
-
|
17
|
-
# A mapping from model property names to API property names.
|
18
|
-
def self.names
|
19
|
-
@_hash = {} if @_hash.nil?
|
20
|
-
@_hash['field_name'] = 'fieldName'
|
21
|
-
@_hash['description'] = 'description'
|
22
|
-
@_hash
|
23
|
-
end
|
24
|
-
|
25
|
-
def initialize(field_name = nil,
|
26
|
-
description = nil)
|
27
|
-
@field_name = field_name
|
28
|
-
@description = description
|
29
|
-
end
|
30
|
-
|
31
|
-
# Creates an instance of the object from a hash.
|
32
|
-
def self.from_hash(hash)
|
33
|
-
return nil unless hash
|
34
|
-
|
35
|
-
# Extract variables from the hash.
|
36
|
-
field_name = hash['fieldName']
|
37
|
-
description = hash['description']
|
38
|
-
|
39
|
-
# Create object from extracted values.
|
40
|
-
FieldError.new(field_name,
|
41
|
-
description)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|