Sha256: 1bc95ccc5efd9b2f27138fd5a5c440f3d8c5b05ac39685f425e199929482801b
Contents?: true
Size: 1.6 KB
Versions: 13
Compression:
Stored size: 1.6 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # Transcription Model. class Transcription < BaseModel # TODO: Write general description for this method # @return [String] attr_accessor :id # TODO: Write general description for this method # @return [Status3Enum] attr_accessor :status # TODO: Write general description for this method # @return [String] attr_accessor :completed_time # TODO: Write general description for this method # @return [String] attr_accessor :url # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['status'] = 'status' @_hash['completed_time'] = 'completedTime' @_hash['url'] = 'url' @_hash end def initialize(id = nil, status = nil, completed_time = nil, url = nil) @id = id @status = status @completed_time = completed_time @url = url end # Creates an instance of the object from a hash. def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash['id'] status = hash['status'] completed_time = hash['completedTime'] url = hash['url'] # Create object from extracted values. Transcription.new(id, status, completed_time, url) end end end
Version data entries
13 entries across 13 versions & 1 rubygems