Class: OpenApiSDK::Models::Shared::AnalyticsTopLinks

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/shared/analyticstoplinks.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(link:, id:, domain:, key:, short_link:, url:, created_at:, title: nil, comments: nil, folder_id: nil, partner_id: nil, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0) ⇒ AnalyticsTopLinks

Returns a new instance of AnalyticsTopLinks.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/open_api_sdk/models/shared/analyticstoplinks.rb', line 49

def initialize(link:, id:, domain:, key:, short_link:, url:, created_at:, title: nil, comments: nil, folder_id: nil, partner_id: nil, clicks: 0.0, leads: 0.0, sales: 0.0, sale_amount: 0.0)
  @link = link
  @id = id
  @domain = domain
  @key = key
  @short_link = short_link
  @url = url
  @created_at = created_at
  @title = title
  @comments = comments
  @folder_id = folder_id
  @partner_id = partner_id
  @clicks = clicks
  @leads = leads
  @sales = sales
  @sale_amount = sale_amount
end

Instance Method Details

#==(other) ⇒ Object



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/open_api_sdk/models/shared/analyticstoplinks.rb', line 68

def ==(other)
  return false unless other.is_a? self.class
  return false unless @link == other.link
  return false unless @id == other.id
  return false unless @domain == other.domain
  return false unless @key == other.key
  return false unless @short_link == other.short_link
  return false unless @url == other.url
  return false unless @created_at == other.created_at
  return false unless @title == other.title
  return false unless @comments == other.comments
  return false unless @folder_id == other.folder_id
  return false unless @partner_id == other.partner_id
  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