Class: Arv::Collection::LocatorRange
- Inherits:
-
Range
- Object
- Range
- Arv::Collection::LocatorRange
- Defined in:
- lib/arvados/collection.rb
Instance Attribute Summary collapse
-
#locator ⇒ Object
readonly
Returns the value of attribute locator.
Instance Method Summary collapse
-
#initialize(loc_s, start) ⇒ LocatorRange
constructor
A new instance of LocatorRange.
Constructor Details
#initialize(loc_s, start) ⇒ LocatorRange
Returns a new instance of LocatorRange.
167 168 169 170 171 |
# File 'lib/arvados/collection.rb', line 167 def initialize(loc_s, start) @locator = loc_s range_end = start + Keep::Locator.parse(loc_s).size.to_i super(start, range_end, false) end |
Instance Attribute Details
#locator ⇒ Object (readonly)
Returns the value of attribute locator.
165 166 167 |
# File 'lib/arvados/collection.rb', line 165 def locator @locator end |