Class: Moov::Models::Components::FulfillmentDetails
- Inherits:
-
Object
- Object
- Moov::Models::Components::FulfillmentDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/fulfillmentdetails.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(has_physical_goods:, is_shipping_product:, shipment_duration_days:, return_policy:) ⇒ FulfillmentDetails
constructor
A new instance of FulfillmentDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(has_physical_goods:, is_shipping_product:, shipment_duration_days:, return_policy:) ⇒ FulfillmentDetails
Returns a new instance of FulfillmentDetails.
26 27 28 29 30 31 |
# File 'lib/moov/models/components/fulfillmentdetails.rb', line 26 def initialize(has_physical_goods:, is_shipping_product:, shipment_duration_days:, return_policy:) @has_physical_goods = has_physical_goods @is_shipping_product = is_shipping_product @shipment_duration_days = shipment_duration_days @return_policy = return_policy end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/moov/models/components/fulfillmentdetails.rb', line 34 def ==(other) return false unless other.is_a? self.class return false unless @has_physical_goods == other.has_physical_goods return false unless @is_shipping_product == other.is_shipping_product return false unless @shipment_duration_days == other.shipment_duration_days return false unless @return_policy == other.return_policy true end |