Class: OpenApiSDK::Models::Shared::AnalyticsDevices
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Shared::AnalyticsDevices
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/shared/analyticsdevices.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(device:, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) ⇒ AnalyticsDevices
constructor
A new instance of AnalyticsDevices.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(device:, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) ⇒ AnalyticsDevices
Returns a new instance of AnalyticsDevices.
27 28 29 30 31 32 33 |
# File 'lib/open_api_sdk/models/shared/analyticsdevices.rb', line 27 def initialize(device:, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) @device = device @clicks = clicks @leads = leads @sales = sales @sale_amount = sale_amount end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/open_api_sdk/models/shared/analyticsdevices.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @device == other.device return false unless @clicks == other.clicks return false unless @leads == other.leads return false unless @sales == other.sales return false unless @sale_amount == other.sale_amount true end |