Sha256: 9932577b834e0340346ae3007f1f75b2cfcd3186034432f4eed6a81cbe763fa2
Contents?: true
Size: 1.06 KB
Versions: 14
Compression:
Stored size: 1.06 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # Create TN Lookup Request class OrderRequest < BaseModel SKIP = Object.new private_constant :SKIP # TODO: Write general description for this method # @return [List of String] attr_accessor :tns # A mapping from model property names to API property names. def self.names @_hash = {} if @_hash.nil? @_hash['tns'] = 'tns' @_hash end # An array for optional fields def optionals %w[ tns ] end # An array for nullable fields def nullables [] end def initialize(tns = nil) @tns = tns unless tns == SKIP end # Creates an instance of the object from a hash. def self.from_hash(hash) return nil unless hash # Extract variables from the hash. tns = hash.key?('tns') ? hash['tns'] : SKIP # Create object from extracted values. OrderRequest.new(tns) end end end
Version data entries
14 entries across 14 versions & 1 rubygems