Class: VCLog::Heuristics::Type
- Inherits:
-
Object
- Object
- VCLog::Heuristics::Type
- Defined in:
- lib/vclog/heuristics/type.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, level, label) ⇒ Type
constructor
A new instance of Type.
- #to_a ⇒ Object
Constructor Details
#initialize(type, level, label) ⇒ Type
Returns a new instance of Type.
9 10 11 12 13 |
# File 'lib/vclog/heuristics/type.rb', line 9 def initialize(type, level, label) @type = type.to_sym @level = level.to_i @label = label.to_s end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
19 20 21 |
# File 'lib/vclog/heuristics/type.rb', line 19 def label @label end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
17 18 19 |
# File 'lib/vclog/heuristics/type.rb', line 17 def level @level end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
15 16 17 |
# File 'lib/vclog/heuristics/type.rb', line 15 def type @type end |
Instance Method Details
#to_a ⇒ Object
22 23 24 |
# File 'lib/vclog/heuristics/type.rb', line 22 def to_a [type, level, label] end |