class Ingenico::Connect::SDK::Domain::Riskassessments::CustomerAccountRiskAssessment

@attr [true/false] has_forgotten_password @attr [true/false] has_password

Attributes

has_forgotten_password[RW]
has_password[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/riskassessments/customer_account_risk_assessment.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'hasForgottenPassword'
    @has_forgotten_password = hash['hasForgottenPassword']
  end
  if hash.has_key? 'hasPassword'
    @has_password = hash['hasPassword']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/riskassessments/customer_account_risk_assessment.rb, line 20
def to_h
  hash = super
  hash['hasForgottenPassword'] = @has_forgotten_password unless @has_forgotten_password.nil?
  hash['hasPassword'] = @has_password unless @has_password.nil?
  hash
end