Sha256: a6c2ad5cb5ebe2c495201f9c8b76268b2b310376666a66f889f5f7761857d0be

Contents?: true

Size: 814 Bytes

Versions: 4

Compression:

Stored size: 814 Bytes

Contents

# bandwidth
#
# This file was automatically generated by APIMATIC v2.0
# ( https://apimatic.io ).

module Bandwidth
  # Create TN Lookup Request
  class OrderRequest < BaseModel
    # 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

    def initialize(tns = nil)
      @tns = tns
    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['tns']

      # Create object from extracted values.
      OrderRequest.new(tns)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bandwidth-sdk-8.0.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-7.1.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-7.0.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-6.2.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb