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

Version Path
bandwidth-sdk-10.5.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-10.4.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-10.3.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-10.2.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-10.1.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-10.0.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.4.1 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.4.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.3.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.2.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.1.2 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.1.1 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.1.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb
bandwidth-sdk-9.0.0 lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb