Class: JunitReportGenerator::Property

Inherits:
Element
  • Object
show all
Defined in:
lib/junit_report_generator/elements/property.rb

Instance Attribute Summary

Attributes included from Elementary

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Element

create

Methods included from Elementary

#assemble_attributes, #method_missing, #update_attributes

Constructor Details

#initialize(name, value) ⇒ Property

Returns a new instance of Property.



5
6
7
8
9
# File 'lib/junit_report_generator/elements/property.rb', line 5

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class JunitReportGenerator::Elementary

Class Method Details

.xml_tag_nameObject



12
13
14
# File 'lib/junit_report_generator/elements/property.rb', line 12

def xml_tag_name
  'property'
end