Class: Clerk::Models::Components::SessionActivityResponse

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/sessionactivityresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, is_mobile:, device_type: nil, browser_name: nil, browser_version: nil, ip_address: nil, city: nil, country: nil) ⇒ SessionActivityResponse

Returns a new instance of SessionActivityResponse.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/clerk/models/components/sessionactivityresponse.rb', line 35

def initialize(object:, id:, is_mobile:, device_type: nil, browser_name: nil, browser_version: nil, ip_address: nil, city: nil, country: nil)
  @object = object
  @id = id
  @is_mobile = is_mobile
  @device_type = device_type
  @browser_name = browser_name
  @browser_version = browser_version
  @ip_address = ip_address
  @city = city
  @country = country
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/clerk/models/components/sessionactivityresponse.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @id == other.id
  return false unless @is_mobile == other.is_mobile
  return false unless @device_type == other.device_type
  return false unless @browser_name == other.browser_name
  return false unless @browser_version == other.browser_version
  return false unless @ip_address == other.ip_address
  return false unless @city == other.city
  return false unless @country == other.country
  true
end