Class: ElasticAPM::Fields::Field
- Inherits:
-
Object
- Object
- ElasticAPM::Fields::Field
- Defined in:
- lib/elastic_apm/fields.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, default: nil) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(key, default: nil) ⇒ Field
Returns a new instance of Field.
37 38 39 40 |
# File 'lib/elastic_apm/fields.rb', line 37 def initialize(key, default: nil) @key = key @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
42 43 44 |
# File 'lib/elastic_apm/fields.rb', line 42 def default @default end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
42 43 44 |
# File 'lib/elastic_apm/fields.rb', line 42 def key @key end |