Class: Moov::Models::Components::FacilitatorFee

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

Overview

Total or markup fee.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(total: nil, total_decimal: nil, markup: nil, markup_decimal: nil) ⇒ FacilitatorFee

Returns a new instance of FacilitatorFee.



29
30
31
32
33
34
# File 'lib/moov/models/components/facilitatorfee.rb', line 29

def initialize(total: nil, total_decimal: nil, markup: nil, markup_decimal: nil)
  @total = total
  @total_decimal = total_decimal
  @markup = markup
  @markup_decimal = markup_decimal
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/facilitatorfee.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @total == other.total
  return false unless @total_decimal == other.total_decimal
  return false unless @markup == other.markup
  return false unless @markup_decimal == other.markup_decimal
  true
end