Class: ParameterizedLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/parameterized_location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_indexObject (readonly)

Returns the value of attribute segment_index.



2
3
4
# File 'lib/parameterized_location.rb', line 2

def segment_index
  @segment_index
end

#valueObject (readonly)

Returns the value of attribute value.



2
3
4
# File 'lib/parameterized_location.rb', line 2

def value
  @value
end