Class: Clerk::Models::Components::LogLocationContext

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

Overview

Geographic location information.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(country_code: nil, city: nil, country: nil) ⇒ LogLocationContext

Returns a new instance of LogLocationContext.



24
25
26
27
28
# File 'lib/clerk/models/components/loglocationcontext.rb', line 24

def initialize(country_code: nil, city: nil, country: nil)
  @country_code = country_code
  @city = city
  @country = country
end

Instance Method Details

#==(other) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/clerk/models/components/loglocationcontext.rb', line 31

def ==(other)
  return false unless other.is_a? self.class
  return false unless @country_code == other.country_code
  return false unless @city == other.city
  return false unless @country == other.country
  true
end