Class: Moov::Models::Components::VolumeByCustomerType
- Inherits:
-
Object
- Object
- Moov::Models::Components::VolumeByCustomerType
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/volumebycustomertype.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(business_to_business_percentage:, consumer_to_business_percentage:) ⇒ VolumeByCustomerType
constructor
A new instance of VolumeByCustomerType.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(business_to_business_percentage:, consumer_to_business_percentage:) ⇒ VolumeByCustomerType
Returns a new instance of VolumeByCustomerType.
22 23 24 25 |
# File 'lib/moov/models/components/volumebycustomertype.rb', line 22 def initialize(business_to_business_percentage:, consumer_to_business_percentage:) @business_to_business_percentage = business_to_business_percentage @consumer_to_business_percentage = consumer_to_business_percentage end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/moov/models/components/volumebycustomertype.rb', line 28 def ==(other) return false unless other.is_a? self.class return false unless @business_to_business_percentage == other.business_to_business_percentage return false unless @consumer_to_business_percentage == other.consumer_to_business_percentage true end |