Sha256: 963cb102f479b23b245b7c612885b513096615dacd4e9be698782ccb25618975
Contents?: true
Size: 1.94 KB
Versions: 3
Compression:
Stored size: 1.94 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # TwoFactorVerifyRequestSchema Model. class TwoFactorVerifyRequestSchema < 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 # TODO: Write general description for this method # @return [String] attr_accessor :code # 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['code'] = 'code' @_hash end def initialize(to = nil, from = nil, application_id = nil, scope = nil, code = nil) @to = to @from = from @application_id = application_id @scope = scope @code = code 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'] code = hash['code'] # Create object from extracted values. TwoFactorVerifyRequestSchema.new(to, from, application_id, scope, code) end end end
Version data entries
3 entries across 3 versions & 1 rubygems