Class: Winston::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/winston/variable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#domainObject (readonly)

Returns the value of attribute domain.



3
4
5
# File 'lib/winston/variable.rb', line 3

def domain
  @domain
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/winston/variable.rb', line 3

def name
  @name
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/winston/variable.rb', line 3

def value
  @value
end