Class: GustoEmbedded::Models::Shared::ValueTiers
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ValueTiers
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/value_tiers.rb
Overview
A single tier of a tiered matching scheme.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(rate: nil, threshold: nil, threshold_delta: nil) ⇒ ValueTiers
constructor
A new instance of ValueTiers.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(rate: nil, threshold: nil, threshold_delta: nil) ⇒ ValueTiers
Returns a new instance of ValueTiers.
31 32 33 34 35 |
# File 'lib/gusto_embedded/models/shared/value_tiers.rb', line 31 def initialize(rate: nil, threshold: nil, threshold_delta: nil) @rate = rate @threshold = threshold @threshold_delta = threshold_delta end |
Instance Method Details
#==(other) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/value_tiers.rb', line 38 def ==(other) return false unless other.is_a? self.class return false unless @rate == other.rate return false unless @threshold == other.threshold return false unless @threshold_delta == other.threshold_delta true end |