Class: Bandwidth::ApiModifyConferenceRequest
- Defined in:
- lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb
Overview
ApiModifyConferenceRequest Model.
Instance Attribute Summary collapse
-
#fallback_password ⇒ String
TODO: Write general description for this method.
-
#fallback_username ⇒ String
TODO: Write general description for this method.
-
#password ⇒ String
TODO: Write general description for this method.
-
#redirect_fallback_method ⇒ RedirectFallbackMethodEnum
TODO: Write general description for this method.
-
#redirect_fallback_url ⇒ String
TODO: Write general description for this method.
-
#redirect_method ⇒ RedirectMethodEnum
TODO: Write general description for this method.
-
#redirect_url ⇒ String
TODO: Write general description for this method.
-
#status ⇒ StatusEnum
TODO: Write general description for this method.
-
#username ⇒ String
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
Instance Method Summary collapse
-
#initialize(status = nil, redirect_url = nil, redirect_fallback_url = nil, redirect_method = nil, redirect_fallback_method = nil, username = nil, password = nil, fallback_username = nil, fallback_password = nil) ⇒ ApiModifyConferenceRequest
constructor
A new instance of ApiModifyConferenceRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(status = nil, redirect_url = nil, redirect_fallback_url = nil, redirect_method = nil, redirect_fallback_method = nil, username = nil, password = nil, fallback_username = nil, fallback_password = nil) ⇒ ApiModifyConferenceRequest
Returns a new instance of ApiModifyConferenceRequest.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 60 def initialize(status = nil, redirect_url = nil, redirect_fallback_url = nil, redirect_method = nil, redirect_fallback_method = nil, username = nil, password = nil, fallback_username = nil, fallback_password = nil) @status = status @redirect_url = redirect_url @redirect_fallback_url = redirect_fallback_url @redirect_method = redirect_method @redirect_fallback_method = redirect_fallback_method @username = username @password = password @fallback_username = fallback_username @fallback_password = fallback_password end |
Instance Attribute Details
#fallback_password ⇒ String
TODO: Write general description for this method
43 44 45 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 43 def fallback_password @fallback_password end |
#fallback_username ⇒ String
TODO: Write general description for this method
39 40 41 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 39 def fallback_username @fallback_username end |
#password ⇒ String
TODO: Write general description for this method
35 36 37 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 35 def password @password end |
#redirect_fallback_method ⇒ RedirectFallbackMethodEnum
TODO: Write general description for this method
27 28 29 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 27 def redirect_fallback_method @redirect_fallback_method end |
#redirect_fallback_url ⇒ String
TODO: Write general description for this method
19 20 21 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 19 def redirect_fallback_url @redirect_fallback_url end |
#redirect_method ⇒ RedirectMethodEnum
TODO: Write general description for this method
23 24 25 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 23 def redirect_method @redirect_method end |
#redirect_url ⇒ String
TODO: Write general description for this method
15 16 17 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 15 def redirect_url @redirect_url end |
#status ⇒ StatusEnum
TODO: Write general description for this method
11 12 13 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 11 def status @status end |
#username ⇒ String
TODO: Write general description for this method
31 32 33 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 31 def username @username end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 81 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. status = hash['status'] redirect_url = hash['redirectUrl'] redirect_fallback_url = hash['redirectFallbackUrl'] redirect_method = hash['redirectMethod'] redirect_fallback_method = hash['redirectFallbackMethod'] username = hash['username'] password = hash['password'] fallback_username = hash['fallbackUsername'] fallback_password = hash['fallbackPassword'] # Create object from extracted values. ApiModifyConferenceRequest.new(status, redirect_url, redirect_fallback_url, redirect_method, redirect_fallback_method, username, password, fallback_username, fallback_password) end |
.names ⇒ Object
A mapping from model property names to API property names.
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/bandwidth/voice_lib/voice/models/api_modify_conference_request.rb', line 46 def self.names @_hash = {} if @_hash.nil? @_hash['status'] = 'status' @_hash['redirect_url'] = 'redirectUrl' @_hash['redirect_fallback_url'] = 'redirectFallbackUrl' @_hash['redirect_method'] = 'redirectMethod' @_hash['redirect_fallback_method'] = 'redirectFallbackMethod' @_hash['username'] = 'username' @_hash['password'] = 'password' @_hash['fallback_username'] = 'fallbackUsername' @_hash['fallback_password'] = 'fallbackPassword' @_hash end |