Class: EsuApi::Extent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, size) ⇒ Extent

Returns a new instance of Extent.



932
933
934
935
# File 'lib/EsuApi.rb', line 932

def initialize( offset, size )
  @offset = offset
  @size = size
end

Instance Attribute Details

#offsetObject

Returns the value of attribute offset.



942
943
944
# File 'lib/EsuApi.rb', line 942

def offset
  @offset
end

#sizeObject

Returns the value of attribute size.



942
943
944
# File 'lib/EsuApi.rb', line 942

def size
  @size
end

Instance Method Details

#to_sObject



937
938
939
940
# File 'lib/EsuApi.rb', line 937

def to_s()
  eend = offset + size - 1
  return "Bytes=#{offset}-#{eend}"
end