Class: OpenApiSDK::Models::Operations::CreatePartnerLinks

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, domain:, key:, short_link:, url:, clicks: 0.0, leads: 0.0, conversions: 0.0, sales: 0.0, sale_amount: 0.0) ⇒ CreatePartnerLinks

Returns a new instance of CreatePartnerLinks.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/open_api_sdk/models/operations/createpartner_links.rb', line 37

def initialize(id:, domain:, key:, short_link:, url:, clicks: 0.0, leads: 0.0, conversions: 0.0, sales: 0.0, sale_amount: 0.0)
  @id = id
  @domain = domain
  @key = key
  @short_link = short_link
  @url = url
  @clicks = clicks
  @leads = leads
  @conversions = conversions
  @sales = sales
  @sale_amount = sale_amount
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/open_api_sdk/models/operations/createpartner_links.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  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 @clicks == other.clicks
  return false unless @leads == other.leads
  return false unless @conversions == other.conversions
  return false unless @sales == other.sales
  return false unless @sale_amount == other.sale_amount
  true
end