class Bandwidth::ConferenceRecordingMetadata

ConferenceRecordingMetadata Model.

Attributes

account_id[RW]

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

channels[RW]

Format is ISO-8601 @return [Integer]

conference_id[RW]

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

duration[RW]

Format is ISO-8601 @return [String]

end_time[RW]

Format is ISO-8601 @return [DateTime]

file_format[RW]

Format is ISO-8601 @return [FileFormatEnum]

media_url[RW]

The current status of the recording. Current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. Additional states may be added in the future, so your application must be tolerant of unknown values. @return [String]

name[RW]

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

recording_id[RW]

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

start_time[RW]

Format is ISO-8601 @return [DateTime]

status[RW]

The current status of the recording. Current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. Additional states may be added in the future, so your application must be tolerant of unknown values. @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/conference_recording_metadata.rb, line 102
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  account_id = hash['accountId']
  conference_id = hash['conferenceId']
  name = hash['name']
  recording_id = hash['recordingId']
  duration = hash['duration']
  channels = hash['channels']
  start_time = DateTimeHelper.from_rfc3339(hash['startTime']) if
    hash['startTime']
  end_time = DateTimeHelper.from_rfc3339(hash['endTime']) if
    hash['endTime']
  file_format = hash['fileFormat']
  status = hash['status']
  media_url = hash['mediaUrl']

  # Create object from extracted values.
  ConferenceRecordingMetadata.new(account_id,
                                  conference_id,
                                  name,
                                  recording_id,
                                  duration,
                                  channels,
                                  start_time,
                                  end_time,
                                  file_format,
                                  status,
                                  media_url)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb, line 61
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_id'] = 'accountId'
  @_hash['conference_id'] = 'conferenceId'
  @_hash['name'] = 'name'
  @_hash['recording_id'] = 'recordingId'
  @_hash['duration'] = 'duration'
  @_hash['channels'] = 'channels'
  @_hash['start_time'] = 'startTime'
  @_hash['end_time'] = 'endTime'
  @_hash['file_format'] = 'fileFormat'
  @_hash['status'] = 'status'
  @_hash['media_url'] = 'mediaUrl'
  @_hash
end
new(account_id = nil, conference_id = nil, name = nil, recording_id = nil, duration = nil, channels = nil, start_time = nil, end_time = nil, file_format = nil, status = nil, media_url = nil) click to toggle source
# File lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb, line 77
def initialize(account_id = nil,
               conference_id = nil,
               name = nil,
               recording_id = nil,
               duration = nil,
               channels = nil,
               start_time = nil,
               end_time = nil,
               file_format = nil,
               status = nil,
               media_url = nil)
  @account_id = account_id
  @conference_id = conference_id
  @name = name
  @recording_id = recording_id
  @duration = duration
  @channels = channels
  @start_time = start_time
  @end_time = end_time
  @file_format = file_format
  @status = status
  @media_url = media_url
end

Public Instance Methods

to_end_time() click to toggle source
# File lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb, line 138
def to_end_time
  DateTimeHelper.to_rfc3339(end_time)
end
to_start_time() click to toggle source
# File lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb, line 134
def to_start_time
  DateTimeHelper.to_rfc3339(start_time)
end