Class: Winston::Variable
- Inherits:
-
Object
- Object
- Winston::Variable
- Defined in:
- lib/winston/variable.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value:, domain:) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(name, value:, domain:) ⇒ Variable
Returns a new instance of Variable.
6 7 8 9 10 |
# File 'lib/winston/variable.rb', line 6 def initialize(name, value:, domain:) @name = name @value = value @domain = domain end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
3 4 5 |
# File 'lib/winston/variable.rb', line 3 def domain @domain end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/winston/variable.rb', line 3 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/winston/variable.rb', line 3 def value @value end |