Sha256: a0f9173a4ac25a2786edb954c767b2b8b1f7aa9fd9e5acb8a507b01635e634b7
Contents?: true
Size: 1.6 KB
Versions: 7
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 [Status1Enum] 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
7 entries across 7 versions & 1 rubygems