Class: DynamoDB::Request
- Inherits:
-
Object
- Object
- DynamoDB::Request
- 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
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#signer ⇒ Object
readonly
Returns the value of attribute signer.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(args = {}) ⇒ Request
constructor
A new instance of Request.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/dynamodb/request.rb', line 6 def body @body end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
6 7 8 |
# File 'lib/dynamodb/request.rb', line 6 def operation @operation end |
#signer ⇒ Object (readonly)
Returns the value of attribute signer.
6 7 8 |
# File 'lib/dynamodb/request.rb', line 6 def signer @signer end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/dynamodb/request.rb', line 6 def uri @uri end |
Instance Method Details
#headers ⇒ Object
15 16 17 |
# File 'lib/dynamodb/request.rb', line 15 def headers @headers ||= signed_headers end |