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



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

def attributed_values( type=:get ) ; self.nodes( "/#{type.to_s.capitalize}QueueAttributesResponse#{ type == :send ? '' : '/AttributedValue'}" ) ; end

#error_codeObject



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

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

#error_messageObject



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

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

#queue_urlObject



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

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

#request_idObject



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

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

#statusObject



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