Class: Moov::Models::Components::UpdateUnderwriting
- Inherits:
-
Object
- Object
- Moov::Models::Components::UpdateUnderwriting
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/updateunderwriting.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(average_transaction_size:, max_transaction_size:, average_monthly_transaction_volume:, volume_by_customer_type:, card_volume_distribution:, fulfillment:) ⇒ UpdateUnderwriting
constructor
A new instance of UpdateUnderwriting.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(average_transaction_size:, max_transaction_size:, average_monthly_transaction_volume:, volume_by_customer_type:, card_volume_distribution:, fulfillment:) ⇒ UpdateUnderwriting
Returns a new instance of UpdateUnderwriting.
30 31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/updateunderwriting.rb', line 30 def initialize(average_transaction_size:, max_transaction_size:, average_monthly_transaction_volume:, volume_by_customer_type:, card_volume_distribution:, fulfillment:) @average_transaction_size = average_transaction_size @max_transaction_size = max_transaction_size @average_monthly_transaction_volume = average_monthly_transaction_volume @volume_by_customer_type = volume_by_customer_type @card_volume_distribution = card_volume_distribution @fulfillment = fulfillment end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/moov/models/components/updateunderwriting.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @average_transaction_size == other.average_transaction_size return false unless @max_transaction_size == other.max_transaction_size return false unless @average_monthly_transaction_volume == other.average_monthly_transaction_volume return false unless @volume_by_customer_type == other.volume_by_customer_type return false unless @card_volume_distribution == other.card_volume_distribution return false unless @fulfillment == other.fulfillment true end |