Class: Moov::Models::Components::RepresentativeResponsibilities

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/representativeresponsibilities.rb

Overview

Describes the job responsibilities of a business representative.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(is_controller: nil, is_owner: nil, ownership_percentage: nil, job_title: nil) ⇒ RepresentativeResponsibilities

Returns a new instance of RepresentativeResponsibilities.



27
28
29
30
31
32
# File 'lib/moov/models/components/representativeresponsibilities.rb', line 27

def initialize(is_controller: nil, is_owner: nil, ownership_percentage: nil, job_title: nil)
  @is_controller = is_controller
  @is_owner = is_owner
  @ownership_percentage = ownership_percentage
  @job_title = job_title
end

Instance Method Details

#==(other) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/moov/models/components/representativeresponsibilities.rb', line 35

def ==(other)
  return false unless other.is_a? self.class
  return false unless @is_controller == other.is_controller
  return false unless @is_owner == other.is_owner
  return false unless @ownership_percentage == other.ownership_percentage
  return false unless @job_title == other.job_title
  true
end