Class: REXML::Document
- Inherits:
-
Object
- Object
- REXML::Document
- Defined in:
- lib/sqs.rb
Instance Method Summary collapse
- #attributed_values(type = :get) ⇒ Object
- #error_code ⇒ Object
- #error_message ⇒ Object
- #grant_lists(type = :list) ⇒ Object
- #message_body(type = :peek) ⇒ Object
- #message_id(type = :send) ⇒ Object
- #messages(type = :receive) ⇒ Object
- #queue_url ⇒ Object
- #request_id ⇒ Object
- #status ⇒ Object
- #visibility_timeout(type = :get) ⇒ Object
Instance Method Details
#attributed_values(type = :get) ⇒ Object
348 |
# File 'lib/sqs.rb', line 348 def attributed_values( type=:get ) ; self.nodes( "/#{type.to_s.capitalize}QueueAttributesResponse#{ type == :send ? '' : '/AttributedValue'}" ) ; end |
#error_code ⇒ Object
337 |
# File 'lib/sqs.rb', line 337 def error_code ; self.node_text( '/Response/Errors/Error/Code' ) ; end |
#error_message ⇒ Object
338 |
# File 'lib/sqs.rb', line 338 def ; self.node_text( '/Response/Errors/Error/Message' ) ; end |
#grant_lists(type = :list) ⇒ Object
352 |
# File 'lib/sqs.rb', line 352 def grant_lists( type=:list ) ; self.nodes("/#{type.to_s.capitalize}GrantsResponse#{ type == :send ? '' : '/GrantList'}" ) ; end |
#message_body(type = :peek) ⇒ Object
345 |
# File 'lib/sqs.rb', line 345 def ( type=:peek ) ; self.node_text( "/#{type.to_s.capitalize}MessageResponse/Message/MessageBody" ) ; end |
#message_id(type = :send) ⇒ Object
344 |
# File 'lib/sqs.rb', line 344 def ( type=:send ) ; self.node_text( "/#{type.to_s.capitalize}MessageResponse/#{ type == :send ? '' : 'Message/'}MessageId" ) ; end |
#messages(type = :receive) ⇒ Object
347 |
# File 'lib/sqs.rb', line 347 def ( type=:receive ) ; self.nodes( "/#{type.to_s.capitalize}MessageResponse#{ type == :send ? '' : '/Message'}" ) ; end |
#queue_url ⇒ Object
341 |
# File 'lib/sqs.rb', line 341 def queue_url ; self.node_text( '/CreateQueueResponse/QueueUrl' ) ; end |
#request_id ⇒ Object
339 |
# File 'lib/sqs.rb', line 339 def request_id ; self.node_text( '*/ResponseStatus/RequestId' ) ; end |
#status ⇒ Object
342 |
# File 'lib/sqs.rb', line 342 def status ; self.node_text( '*/ResponseStatus/StatusCode' ) ; end |
#visibility_timeout(type = :get) ⇒ Object
350 |
# File 'lib/sqs.rb', line 350 def visibility_timeout( type=:get ) ; self.node_text( "/#{type.to_s.capitalize}VisibilityTimeoutResponse/VisibilityTimeout" ).to_i ; end |