Class: Clerk::Models::Components::LogBrowserContext
- Inherits:
-
Object
- Object
- Clerk::Models::Components::LogBrowserContext
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/logbrowsercontext.rb
Overview
Browser information.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name: nil, version: nil) ⇒ LogBrowserContext
constructor
A new instance of LogBrowserContext.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name: nil, version: nil) ⇒ LogBrowserContext
Returns a new instance of LogBrowserContext.
21 22 23 24 |
# File 'lib/clerk/models/components/logbrowsercontext.rb', line 21 def initialize(name: nil, version: nil) @name = name @version = version end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/clerk/models/components/logbrowsercontext.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @version == other.version true end |