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.



134
135
136
137
# File 'lib/throne/database.rb', line 134

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

Instance Attribute Details

#offsetObject (readonly)

Offset field as returned by couch



132
133
134
# File 'lib/throne/database.rb', line 132

def offset
  @offset
end