Class: OpenApiSDK::Models::Shared::Click

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil) ⇒ Click

Returns a new instance of Click.



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

def initialize(id:, timestamp:, url:, country:, city:, region:, continent:, device:, browser:, os:, referer:, referer_url:, qr:, ip:, ua: nil, trigger: nil)
  @id = id
  @timestamp = timestamp
  @url = url
  @country = country
  @city = city
  @region = region
  @continent = continent
  @device = device
  @browser = browser
  @os = os
  @referer = referer
  @referer_url = referer_url
  @qr = qr
  @ip = ip
  @ua = ua
  @trigger = trigger
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @timestamp == other.timestamp
  return false unless @url == other.url
  return false unless @country == other.country
  return false unless @city == other.city
  return false unless @region == other.region
  return false unless @continent == other.continent
  return false unless @device == other.device
  return false unless @browser == other.browser
  return false unless @os == other.os
  return false unless @referer == other.referer
  return false unless @referer_url == other.referer_url
  return false unless @qr == other.qr
  return false unless @ip == other.ip
  return false unless @ua == other.ua
  return false unless @trigger == other.trigger
  true
end