Class: DynamoDB::Request

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

Constant Summary collapse

RFC1123 =
"%a, %d %b %Y %H:%M:%S GMT"
ISO8601 =
"%Y%m%dT%H%M%SZ"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Request

Returns a new instance of Request.



8
9
10
11
12
13
# File 'lib/dynamodb/request.rb', line 8

def initialize(args = {})
  @uri        = args[:uri]
  @operation  = args[:operation]
  @body       = MultiJson.dump(args[:body])
  @signer     = args[:signer]
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



6
7
8
# File 'lib/dynamodb/request.rb', line 6

def body
  @body
end

#operationObject (readonly)

Returns the value of attribute operation.



6
7
8
# File 'lib/dynamodb/request.rb', line 6

def operation
  @operation
end

#signerObject (readonly)

Returns the value of attribute signer.



6
7
8
# File 'lib/dynamodb/request.rb', line 6

def signer
  @signer
end

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/dynamodb/request.rb', line 6

def uri
  @uri
end

Instance Method Details

#headersObject



15
16
17
# File 'lib/dynamodb/request.rb', line 15

def headers
  @headers ||= signed_headers
end