class Bandwidth::ModifyCallRecordingRequest

ModifyCallRecordingRequest Model.

Attributes

state[RW]

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

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_call_recording_request.rb, line 25
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  state = hash['state']

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

A mapping from model property names to API property names.

# File lib/bandwidth/voice_lib/voice/models/modify_call_recording_request.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['state'] = 'state'
  @_hash
end
new(state = nil) click to toggle source
# File lib/bandwidth/voice_lib/voice/models/modify_call_recording_request.rb, line 20
def initialize(state = nil)
  @state = state
end