class Bandwidth::ConferenceRecordingMetadata
ConferenceRecordingMetadata
Model.
Attributes
TODO: Write general description for this method @return [String]
Format is ISO-8601 @return [Integer]
TODO: Write general description for this method @return [String]
Format is ISO-8601 @return [String]
Format is ISO-8601 @return [DateTime]
Format is ISO-8601 @return [FileFormatEnum]
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]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [String]
Format is ISO-8601 @return [DateTime]
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
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
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
# 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
# File lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb, line 138 def to_end_time DateTimeHelper.to_rfc3339(end_time) end
# File lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb, line 134 def to_start_time DateTimeHelper.to_rfc3339(start_time) end