lib/aws-sdk-sqs/message.rb in aws-sdk-sqs-1.0.0 vs lib/aws-sdk-sqs/message.rb in aws-sdk-sqs-1.1.0

- old
+ new

@@ -40,23 +40,23 @@ # A unique identifier for the message. A `MessageId`is considered unique # across all AWS accounts for an extended period of time. # @return [String] def message_id - data.message_id + data[:message_id] end # An MD5 digest of the non-URL-encoded message body string. # @return [String] def md5_of_body - data.md5_of_body + data[:md5_of_body] end # The message's contents (not URL-encoded). # @return [String] def body - data.body + data[:body] end # `SenderId`, `SentTimestamp`, `ApproximateReceiveCount`, and/or # `ApproximateFirstReceiveTimestamp`. `SentTimestamp` and # `ApproximateFirstReceiveTimestamp` are each returned as an integer @@ -65,11 +65,11 @@ # # # [1]: http://en.wikipedia.org/wiki/Unix_time # @return [Hash<String,String>] def attributes - data.attributes + data[:attributes] end # An MD5 digest of the non-URL-encoded message attribute string. You can # use this attribute to verify that Amazon SQS received the message # correctly. Amazon SQS URL-decodes the message before creating the MD5 @@ -78,11 +78,11 @@ # # # [1]: https://www.ietf.org/rfc/rfc1321.txt # @return [String] def md5_of_message_attributes - data.md5_of_message_attributes + data[:md5_of_message_attributes] end # Each message attribute consists of a `Name`, `Type`, and `Value`. For # more information, see [Message Attribute Items and Validation][1] in # the *Amazon SQS Developer Guide*. @@ -90,10 +90,10 @@ # # # [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation # @return [Hash<String,Types::MessageAttributeValue>] def message_attributes - data.message_attributes + data[:message_attributes] end # @!endgroup # @return [Client]