Class: Edge::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/Edge/label.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name_param, value_param) ⇒ Label

Returns a new instance of Label.



6
7
8
9
10
11
12
13
# File 'lib/logstash/outputs/Edge/label.rb', line 6

def initialize(name_param, value_param)
    puts "name"
    puts name_param
    puts "value"
    puts value_param
    name = name_param
    value = value_param
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/logstash/outputs/Edge/label.rb', line 4

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/logstash/outputs/Edge/label.rb', line 4

def value
  @value
end