Class: OpenApiSDK::Models::Shared::AnalyticsBrowsers
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Shared::AnalyticsBrowsers
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/shared/analyticsbrowsers.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(browser:, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) ⇒ AnalyticsBrowsers
constructor
A new instance of AnalyticsBrowsers.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(browser:, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) ⇒ AnalyticsBrowsers
Returns a new instance of AnalyticsBrowsers.
27 28 29 30 31 32 33 |
# File 'lib/open_api_sdk/models/shared/analyticsbrowsers.rb', line 27 def initialize(browser:, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) @browser = browser @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/analyticsbrowsers.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @browser == other.browser 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 |