Class: Moov::Models::Components::BillableFee

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(fee_model:, fee_category:, billable_fee_id: nil, billable_event: nil, fee_name: nil, fee_properties: nil, fee_conditions: nil) ⇒ BillableFee

Returns a new instance of BillableFee.



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

def initialize(fee_model:, fee_category:, billable_fee_id: nil, billable_event: nil, fee_name: nil, fee_properties: nil, fee_conditions: nil)
  @fee_model = fee_model
  @fee_category = fee_category
  @billable_fee_id = billable_fee_id
  @billable_event = billable_event
  @fee_name = fee_name
  @fee_properties = fee_properties
  @fee_conditions = fee_conditions
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/moov/models/components/billablefee.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @fee_model == other.fee_model
  return false unless @fee_category == other.fee_category
  return false unless @billable_fee_id == other.billable_fee_id
  return false unless @billable_event == other.billable_event
  return false unless @fee_name == other.fee_name
  return false unless @fee_properties == other.fee_properties
  return false unless @fee_conditions == other.fee_conditions
  true
end