Class: DynamodbRecord::Pager

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

Overview

Dynamodb::Pager is a abstract class to paginate

Direct Known Subclasses

QueryPager, ScanPager

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, klass) ⇒ Pager

Returns a new instance of Pager.



6
7
8
9
# File 'lib/dynamodb_record/pager.rb', line 6

def initialize(options, klass)
  @options = options
  @klass = klass
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



4
5
6
# File 'lib/dynamodb_record/pager.rb', line 4

def klass
  @klass
end

Instance Method Details

#last_evaluated_keyObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/dynamodb_record/pager.rb', line 11

def last_evaluated_key
  raise NotImplementedError, 'Este método debe ser implementado por las subclases'
end