Class: Clerk::Models::Components::LogEnvironmentContext
- Inherits:
-
Object
- Object
- Clerk::Models::Components::LogEnvironmentContext
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/logenvironmentcontext.rb
Overview
Environment context for the log event.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(application: nil, domain: nil, primary_domain: nil, type: nil) ⇒ LogEnvironmentContext
constructor
A new instance of LogEnvironmentContext.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(application: nil, domain: nil, primary_domain: nil, type: nil) ⇒ LogEnvironmentContext
Returns a new instance of LogEnvironmentContext.
25 26 27 28 29 30 |
# File 'lib/clerk/models/components/logenvironmentcontext.rb', line 25 def initialize(application: nil, domain: nil, primary_domain: nil, type: nil) @application = application @domain = domain @primary_domain = primary_domain @type = type end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/clerk/models/components/logenvironmentcontext.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @application == other.application return false unless @domain == other.domain return false unless @primary_domain == other.primary_domain return false unless @type == other.type true end |