class Bandwidth::ModifyConferenceRequest

ModifyConferenceRequest Model.

Attributes

fallback_password[RW]

TODO: Write general description for this method @return [String]

fallback_username[RW]

TODO: Write general description for this method @return [String]

password[RW]

TODO: Write general description for this method @return [String]

redirect_fallback_method[RW]

TODO: Write general description for this method @return [RedirectFallbackMethodEnum]

redirect_fallback_url[RW]

TODO: Write general description for this method @return [String]

redirect_method[RW]

TODO: Write general description for this method @return [RedirectMethodEnum]

redirect_url[RW]

TODO: Write general description for this method @return [String]

status[RW]

TODO: Write general description for this method @return [StatusEnum]

username[RW]

TODO: Write general description for this method @return [String]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/bandwidth/voice_lib/voice/models/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.
  ModifyConferenceRequest.new(status,
                              redirect_url,
                              redirect_fallback_url,
                              redirect_method,
                              redirect_fallback_method,
                              username,
                              password,
                              fallback_username,
                              fallback_password)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/bandwidth/voice_lib/voice/models/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
new(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) click to toggle source
# File lib/bandwidth/voice_lib/voice/models/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