Class: Allure::Label

Inherits:
JSONable show all
Defined in:
allure-ruby-commons/lib/allure_ruby_commons/model/label.rb

Overview

Allure model label object

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#==, #as_json, #to_json

Constructor Details

#initialize(name, value) ⇒ Label

Returns a new instance of Label.


8
9
10
11
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/label.rb', line 8

def initialize(name, value)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject

Returns the value of attribute name


13
14
15
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/label.rb', line 13

def name
  @name
end

#valueObject

Returns the value of attribute value


13
14
15
# File 'allure-ruby-commons/lib/allure_ruby_commons/model/label.rb', line 13

def value
  @value
end