Class: KalibroClient::Entities::Miscellaneous::Metric
- Defined in:
- lib/kalibro_client/entities/miscellaneous/metric.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, name, code, scope) ⇒ Metric
constructor
A new instance of Metric.
Methods inherited from Base
Methods included from HashConverters
#convert_to_hash, #date_with_milliseconds, #field_to_hash
Methods included from XMLConverters
#get_xml, #xml_instance_class_name
Constructor Details
#initialize(type, name, code, scope) ⇒ Metric
Returns a new instance of Metric.
9 10 11 12 13 14 15 |
# File 'lib/kalibro_client/entities/miscellaneous/metric.rb', line 9 def initialize(type, name, code, scope) @type = type @name = name @code = code self.scope = scope @description = "" end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/kalibro_client/entities/miscellaneous/metric.rb', line 7 def code @code end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/kalibro_client/entities/miscellaneous/metric.rb', line 7 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/kalibro_client/entities/miscellaneous/metric.rb', line 7 def name @name end |
#scope ⇒ Object
Returns the value of attribute scope.
7 8 9 |
# File 'lib/kalibro_client/entities/miscellaneous/metric.rb', line 7 def scope @scope end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/kalibro_client/entities/miscellaneous/metric.rb', line 7 def type @type end |