Class: Unit::Types::EvaluationParams

Inherits:
Object
  • Object
show all
Defined in:
lib/unit/types/evaluation_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(use_selfie_verification = nil, required_verification = nil) ⇒ EvaluationParams

Returns a new instance of EvaluationParams.



9
10
11
12
# File 'lib/unit/types/evaluation_params.rb', line 9

def initialize(use_selfie_verification = nil, required_verification = nil)
  @use_selfie_verification = use_selfie_verification
  @required_verification = required_verification
end

Instance Attribute Details

#required_verificationObject (readonly)

Returns the value of attribute required_verification.



7
8
9
# File 'lib/unit/types/evaluation_params.rb', line 7

def required_verification
  @required_verification
end

#use_selfie_verificationObject (readonly)

Returns the value of attribute use_selfie_verification.



7
8
9
# File 'lib/unit/types/evaluation_params.rb', line 7

def use_selfie_verification
  @use_selfie_verification
end

Instance Method Details

#representObject



14
15
16
17
18
19
# File 'lib/unit/types/evaluation_params.rb', line 14

def represent
  {
    useSelfieVerification: use_selfie_verification,
    requiredVerification: required_verification
  }.compact!
end