Class: Unit::Types::RequireIdVerification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(individual = nil, officer = nil, beneficial_owners = nil) ⇒ RequireIdVerification

Returns a new instance of RequireIdVerification.

Parameters:

  • individual (Boolean) (defaults to: nil)
    • optional

  • officer (Boolean) (defaults to: nil)
    • optional

  • beneficial_owners (Boolean) (defaults to: nil)
    • optional



13
14
15
16
17
# File 'lib/unit/types/require_id_verification.rb', line 13

def initialize(individual = nil, officer = nil, beneficial_owners = nil)
  @individual = individual
  @officer = officer
  @beneficial_owners = beneficial_owners
end

Instance Attribute Details

#beneficial_ownersObject (readonly)

Returns the value of attribute beneficial_owners.



8
9
10
# File 'lib/unit/types/require_id_verification.rb', line 8

def beneficial_owners
  @beneficial_owners
end

#individualObject (readonly)

Returns the value of attribute individual.



8
9
10
# File 'lib/unit/types/require_id_verification.rb', line 8

def individual
  @individual
end

#officerObject (readonly)

Returns the value of attribute officer.



8
9
10
# File 'lib/unit/types/require_id_verification.rb', line 8

def officer
  @officer
end

Instance Method Details

#representObject



19
20
21
22
23
24
25
26
# File 'lib/unit/types/require_id_verification.rb', line 19

def represent
  payload = {
    individual: individual,
    officer: officer,
    beneficialOwners: beneficial_owners
  }
  payload.compact
end