Class: OpenApiSDK::Models::Operations::TrackSaleResponseBody
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Operations::TrackSaleResponseBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/operations/tracksale_responsebody.rb
Overview
A sale was tracked.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(event_name:, customer: nil, sale: nil) ⇒ TrackSaleResponseBody
constructor
A new instance of TrackSaleResponseBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(event_name:, customer: nil, sale: nil) ⇒ TrackSaleResponseBody
Returns a new instance of TrackSaleResponseBody.
23 24 25 26 27 |
# File 'lib/open_api_sdk/models/operations/tracksale_responsebody.rb', line 23 def initialize(event_name:, customer: nil, sale: nil) @event_name = event_name @customer = customer @sale = sale end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/open_api_sdk/models/operations/tracksale_responsebody.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @event_name == other.event_name return false unless @customer == other.customer return false unless @sale == other.sale true end |