Class: ParameterizedLocation
- Inherits:
-
Object
- Object
- ParameterizedLocation
- Defined in:
- lib/parameterized_location.rb
Instance Attribute Summary collapse
-
#segment_index ⇒ Object
readonly
Returns the value of attribute segment_index.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(segment_index, value) ⇒ ParameterizedLocation
constructor
A new instance of ParameterizedLocation.
Constructor Details
#initialize(segment_index, value) ⇒ ParameterizedLocation
Returns a new instance of ParameterizedLocation.
4 5 6 7 |
# File 'lib/parameterized_location.rb', line 4 def initialize(segment_index, value) @segment_index = segment_index @value = value end |
Instance Attribute Details
#segment_index ⇒ Object (readonly)
Returns the value of attribute segment_index.
2 3 4 |
# File 'lib/parameterized_location.rb', line 2 def segment_index @segment_index end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'lib/parameterized_location.rb', line 2 def value @value end |