class Bandwidth::OrderResponse
The request has been accepted for processing but not yet finished and in a terminal state (COMPLETE, PARTIAL_COMPLETE, or FAILED)
Attributes
request_id[RW]
TODO: Write general description for this method @return [String]
status[RW]
TODO: Write general description for this method @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_response.rb, line 33 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
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_response.rb, line 19 def self.names @_hash = {} if @_hash.nil? @_hash['request_id'] = 'requestId' @_hash['status'] = 'status' @_hash end
new(request_id = nil, status = nil)
click to toggle source
# File lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_response.rb, line 26 def initialize(request_id = nil, status = nil) @request_id = request_id @status = status end