class Bandwidth::TwoFactorVoiceResponse

TwoFactorVoiceResponse Model.

Attributes

call_id[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/multi_factor_auth_lib/multi_factor_auth/models/two_factor_voice_response.rb, line 25
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  call_id = hash['callId']

  # Create object from extracted values.
  TwoFactorVoiceResponse.new(call_id)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_voice_response.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['call_id'] = 'callId'
  @_hash
end
new(call_id = nil) click to toggle source
# File lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_voice_response.rb, line 20
def initialize(call_id = nil)
  @call_id = call_id
end