Class: Arv::Collection::LocatorRange

Inherits:
Range
  • Object
show all
Defined in:
lib/arvados/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locatorObject (readonly)

Returns the value of attribute locator.



165
166
167
# File 'lib/arvados/collection.rb', line 165

def locator
  @locator
end