Sha256: 415e1f3fef7cdcf84f20cb2a40e4684d6df06f2de0042fe9ce8e42b0590300f3

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

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

module Bandwidth
  # TwoFactorCodeRequestSchema Model.
  class TwoFactorCodeRequestSchema < BaseModel
    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :to

    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :from

    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :application_id

    # TODO: Write general description for this method
    # @return [String]
    attr_accessor :scope

    # A mapping from model property names to API property names.
    def self.names
      @_hash = {} if @_hash.nil?
      @_hash['to'] = 'to'
      @_hash['from'] = 'from'
      @_hash['application_id'] = 'applicationId'
      @_hash['scope'] = 'scope'
      @_hash
    end

    def initialize(to = nil,
                   from = nil,
                   application_id = nil,
                   scope = nil)
      @to = to
      @from = from
      @application_id = application_id
      @scope = scope
    end

    # Creates an instance of the object from a hash.
    def self.from_hash(hash)
      return nil unless hash

      # Extract variables from the hash.
      to = hash['to']
      from = hash['from']
      application_id = hash['applicationId']
      scope = hash['scope']

      # Create object from extracted values.
      TwoFactorCodeRequestSchema.new(to,
                                     from,
                                     application_id,
                                     scope)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bandwidth-sdk-3.4.0 lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_code_request_schema.rb
bandwidth-sdk-3.3.0 lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_code_request_schema.rb
bandwidth-sdk-3.2.0 lib/bandwidth/two_factor_auth_lib/two_factor_auth/models/two_factor_code_request_schema.rb