Sha256: 1a2bbaf2fac2a57f07a66a4edd3287ef55595ec362adffbe24617083f144dfaa
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # The request has been accepted for processing but not yet finished and in a # terminal state (COMPLETE, PARTIAL_COMPLETE, or FAILED) class OrderResponse < BaseModel # TODO: Write general description for this method # @return [String] attr_accessor :request_id # TODO: Write general description for this method # @return [String] attr_accessor :status # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['request_id'] = 'requestId' @_hash['status'] = 'status' @_hash end def initialize(request_id = nil, status = nil) @request_id = request_id @status = status end # Creates an instance of the object from a hash. def self.from_hash(hash) return nil unless hash # Extract variables from the hash. request_id = hash['requestId'] status = hash['status'] # Create object from extracted values. OrderResponse.new(request_id, status) end end end
Version data entries
4 entries across 4 versions & 1 rubygems