Class: Moov::Models::Components::Underwriting
- Inherits:
-
Object
- Object
- Moov::Models::Components::Underwriting
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/underwriting.rb
Overview
Describes underwriting values (in USD) used for card payment acceptance.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(average_transaction_size:, max_transaction_size:, average_monthly_transaction_volume:, status:, volume_by_customer_type:, card_volume_distribution:, fulfillment:) ⇒ Underwriting
constructor
A new instance of Underwriting.
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:, status:, volume_by_customer_type:, card_volume_distribution:, fulfillment:) ⇒ Underwriting
Returns a new instance of Underwriting.
31 32 33 34 35 36 37 38 39 |
# File 'lib/moov/models/components/underwriting.rb', line 31 def initialize(average_transaction_size:, max_transaction_size:, average_monthly_transaction_volume:, status:, 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 @status = status @volume_by_customer_type = volume_by_customer_type @card_volume_distribution = card_volume_distribution @fulfillment = fulfillment end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/moov/models/components/underwriting.rb', line 42 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 @status == other.status 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 |