class Beaver::MfaRbit
MfaRbit
Model.
Attributes
associated_phone[RW]
TODO: Write general description for this method @return [AssociatedPhone]
mfa_action[RW]
TODO: Write general description for this method @return [MfaActionEnum]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/mfa_rbit.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. mfa_action = hash['mfa_action'] associated_phone = AssociatedPhone.from_hash(hash['associated_phone']) if hash['associated_phone'] # Create object from extracted values. MfaRbit.new(mfa_action, associated_phone) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/mfa_rbit.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['mfa_action'] = 'mfa_action' @_hash['associated_phone'] = 'associated_phone' @_hash end
new(mfa_action = nil, associated_phone = nil)
click to toggle source
# File lib/beaver/models/mfa_rbit.rb, line 25 def initialize(mfa_action = nil, associated_phone = nil) @mfa_action = mfa_action @associated_phone = associated_phone end