Class: Fintoc::V2::Onboarding

Inherits:
Object
  • Object
show all
Defined in:
lib/fintoc/v2/resources/onboarding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object:, id:, entity_id: nil, type: nil, status: nil, source: nil, submitted_at: nil, reviewed_at: nil, submittable: nil, data: nil, legal_representatives: nil, shareholders: nil, documents: nil, client: nil) ⇒ Onboarding

Returns a new instance of Onboarding.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/fintoc/v2/resources/onboarding.rb', line 8

def initialize(
  object:,
  id:,
  entity_id: nil,
  type: nil,
  status: nil,
  source: nil,
  submitted_at: nil,
  reviewed_at: nil,
  submittable: nil,
  data: nil,
  legal_representatives: nil,
  shareholders: nil,
  documents: nil,
  client: nil,
  **
)
  @object = object
  @id = id
  @entity_id = entity_id
  @type = type
  @status = status
  @source = source
  @submitted_at = 
  @reviewed_at = reviewed_at
  @submittable = submittable
  @data = data
  @legal_representatives = legal_representatives
  @shareholders = shareholders
  @documents = documents
  @client = client
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def data
  @data
end

#documentsObject (readonly)

Returns the value of attribute documents.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def documents
  @documents
end

#entity_idObject (readonly)

Returns the value of attribute entity_id.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def entity_id
  @entity_id
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def id
  @id
end

Returns the value of attribute legal_representatives.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def legal_representatives
  @legal_representatives
end

#objectObject (readonly)

Returns the value of attribute object.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def object
  @object
end

#reviewed_atObject (readonly)

Returns the value of attribute reviewed_at.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def reviewed_at
  @reviewed_at
end

#shareholdersObject (readonly)

Returns the value of attribute shareholders.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def shareholders
  @shareholders
end

#sourceObject (readonly)

Returns the value of attribute source.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def source
  @source
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def status
  @status
end

#submittableObject (readonly)

Returns the value of attribute submittable.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def submittable
  @submittable
end

#submitted_atObject (readonly)

Returns the value of attribute submitted_at.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def 
  @submitted_at
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/fintoc/v2/resources/onboarding.rb', line 4

def type
  @type
end

Instance Method Details

#to_sObject



41
42
43
# File 'lib/fintoc/v2/resources/onboarding.rb', line 41

def to_s
  "📋 Onboarding #{@id} (#{@status})"
end