class Bandwidth::OrderRequest
Create TN Lookup Request
Attributes
tns[RW]
TODO: Write general description for this method @return [List of 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_request.rb, line 25 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. tns = hash['tns'] # Create object from extracted values. OrderRequest.new(tns) 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_request.rb, line 14 def self.names @_hash = {} if @_hash.nil? @_hash['tns'] = 'tns' @_hash end
new(tns = nil)
click to toggle source
# File lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb, line 20 def initialize(tns = nil) @tns = tns end