Class: Throne::ArrayWithFunctionMeta

Inherits:
Array
  • Object
show all
Defined in:
lib/throne/database.rb

Overview

Extended array, to store the couch extra data

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(array, offset) ⇒ ArrayWithFunctionMeta

Returns a new instance of ArrayWithFunctionMeta.



122
123
124
125
# File 'lib/throne/database.rb', line 122

def initialize(array, offset)
  @offset = offset
  super(array)
end

Instance Attribute Details

#offsetObject (readonly)

Offset field as returned by couch



120
121
122
# File 'lib/throne/database.rb', line 120

def offset
  @offset
end