Class: REXML::Document

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

Instance Method Summary collapse

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_codeObject



337
# File 'lib/sqs.rb', line 337

def error_code ; self.node_text( '/Response/Errors/Error/Code' ) ; end

#error_messageObject



338
# File 'lib/sqs.rb', line 338

def error_message ; 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 message_body( 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 message_id( 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 messages( type=:receive ) ; self.nodes( "/#{type.to_s.capitalize}MessageResponse#{ type == :send ? '' : '/Message'}" ) ; end

#queue_urlObject



341
# File 'lib/sqs.rb', line 341

def queue_url ; self.node_text( '/CreateQueueResponse/QueueUrl' ) ; end

#request_idObject



339
# File 'lib/sqs.rb', line 339

def request_id ; self.node_text( '*/ResponseStatus/RequestId' ) ; end

#statusObject



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