Class: Moov::Models::Components::BillingSummaryInterchange

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

Overview

A summary of interchange fees by card brand.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(visa:, mastercard:, discover:, american_express:) ⇒ BillingSummaryInterchange

Returns a new instance of BillingSummaryInterchange.



25
26
27
28
29
30
# File 'lib/moov/models/components/billingsummaryinterchange.rb', line 25

def initialize(visa:, mastercard:, discover:, american_express:)
  @visa = visa
  @mastercard = mastercard
  @discover = discover
  @american_express = american_express
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/billingsummaryinterchange.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @visa == other.visa
  return false unless @mastercard == other.mastercard
  return false unless @discover == other.discover
  return false unless @american_express == other.american_express
  true
end