Class: Lotus::Model::Adapters::Dynamodb::Collection::Response Private

Inherits:
Object
  • Object
show all
Defined in:
lib/lotus/model/adapters/dynamodb/collection.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Response interface provides count and entities.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Response.

Since:

  • 0.1.0



23
24
25
26
# File 'lib/lotus/model/adapters/dynamodb/collection.rb', line 23

def initialize
  @count = 0
  @entities = []
end

Instance Attribute Details

#countObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



21
22
23
# File 'lib/lotus/model/adapters/dynamodb/collection.rb', line 21

def count
  @count
end

#entitiesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



21
22
23
# File 'lib/lotus/model/adapters/dynamodb/collection.rb', line 21

def entities
  @entities
end

#last_evaluated_keyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



21
22
23
# File 'lib/lotus/model/adapters/dynamodb/collection.rb', line 21

def last_evaluated_key
  @last_evaluated_key
end