Class: Moov::Models::Components::UpsertUnderwriting

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(geographic_reach: nil, business_presence: nil, pending_litigation: nil, volume_share_by_customer_type: nil, collect_funds: nil, money_transfer: nil, send_funds: nil, submission_intent: nil) ⇒ UpsertUnderwriting

Returns a new instance of UpsertUnderwriting.



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

def initialize(geographic_reach: nil, business_presence: nil, pending_litigation: nil, volume_share_by_customer_type: nil, collect_funds: nil, money_transfer: nil, send_funds: nil, submission_intent: nil)
  @geographic_reach = geographic_reach
  @business_presence = business_presence
  @pending_litigation = pending_litigation
  @volume_share_by_customer_type = volume_share_by_customer_type
  @collect_funds = collect_funds
  @money_transfer = money_transfer
  @send_funds = send_funds
  @submission_intent = submission_intent
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/moov/models/components/upsertunderwriting.rb', line 46

def ==(other)
  return false unless other.is_a? self.class
  return false unless @geographic_reach == other.geographic_reach
  return false unless @business_presence == other.business_presence
  return false unless @pending_litigation == other.pending_litigation
  return false unless @volume_share_by_customer_type == other.volume_share_by_customer_type
  return false unless @collect_funds == other.collect_funds
  return false unless @money_transfer == other.money_transfer
  return false unless @send_funds == other.send_funds
  return false unless @submission_intent == other.submission_intent
  true
end