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
255 |
# File 'lib/sqs.rb', line 255 def attributed_values( type=:get ) ; self.nodes( "/#{type.to_s.capitalize}QueueAttributesResponse#{ type == :send ? '' : '/AttributedValue'}" ) ; end |
#error_code ⇒ Object
244 |
# File 'lib/sqs.rb', line 244 def error_code ; self.node_text( '/Response/Errors/Error/Code' ) ; end |
#error_message ⇒ Object
245 |
# File 'lib/sqs.rb', line 245 def ; self.node_text( '/Response/Errors/Error/Message' ) ; end |
#grant_lists(type = :list) ⇒ Object
259 |
# File 'lib/sqs.rb', line 259 def grant_lists( type=:list ) ; self.nodes("/#{type.to_s.capitalize}GrantsResponse#{ type == :send ? '' : '/GrantList'}" ) ; end |
#message_body(type = :peek) ⇒ Object
252 |
# File 'lib/sqs.rb', line 252 def ( type=:peek ) ; self.node_text( "/#{type.to_s.capitalize}MessageResponse/Message/MessageBody" ) ; end |
#message_id(type = :send) ⇒ Object
251 |
# File 'lib/sqs.rb', line 251 def ( type=:send ) ; self.node_text( "/#{type.to_s.capitalize}MessageResponse/#{ type == :send ? '' : 'Message/'}MessageId" ) ; end |
#messages(type = :receive) ⇒ Object
254 |
# File 'lib/sqs.rb', line 254 def ( type=:receive ) ; self.nodes( "/#{type.to_s.capitalize}MessageResponse#{ type == :send ? '' : '/Message'}" ) ; end |
#queue_url ⇒ Object
248 |
# File 'lib/sqs.rb', line 248 def queue_url ; self.node_text( '/CreateQueueResponse/QueueUrl' ) ; end |
#request_id ⇒ Object
246 |
# File 'lib/sqs.rb', line 246 def request_id ; self.node_text( '*/ResponseStatus/RequestId' ) ; end |
#status ⇒ Object
249 |
# File 'lib/sqs.rb', line 249 def status ; self.node_text( '*/ResponseStatus/StatusCode' ) ; end |
#visibility_timeout(type = :get) ⇒ Object
257 |
# File 'lib/sqs.rb', line 257 def visibility_timeout( type=:get ) ; self.node_text( "/#{type.to_s.capitalize}VisibilityTimeoutResponse/VisibilityTimeout" ).to_i ; end |