Class: Basketcase::ElementStatus
- Inherits:
-
Object
- Object
- Basketcase::ElementStatus
- Defined in:
- lib/basketcase.rb
Overview
Represents the status of an element
Instance Attribute Summary collapse
-
#base_version ⇒ Object
readonly
Returns the value of attribute base_version.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(path, status, base_version = nil) ⇒ ElementStatus
constructor
A new instance of ElementStatus.
- #to_s ⇒ Object
Constructor Details
#initialize(path, status, base_version = nil) ⇒ ElementStatus
Returns a new instance of ElementStatus.
149 150 151 152 153 |
# File 'lib/basketcase.rb', line 149 def initialize(path, status, base_version = nil) @path = path @status = status @base_version = base_version end |
Instance Attribute Details
#base_version ⇒ Object (readonly)
Returns the value of attribute base_version.
155 156 157 |
# File 'lib/basketcase.rb', line 155 def base_version @base_version end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
155 156 157 |
# File 'lib/basketcase.rb', line 155 def path @path end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
155 156 157 |
# File 'lib/basketcase.rb', line 155 def status @status end |
Instance Method Details
#to_s ⇒ Object
157 158 159 160 161 |
# File 'lib/basketcase.rb', line 157 def to_s s = "#{path} (#{status})" s += " [#{base_version}]" if base_version return s end |