Method: RightAws::SqsGen2Interface::SqsReceiveMessageParser#tagend

Defined in:
lib/sqs/right_sqs_gen2_interface.rb

#tagend(name) ⇒ Object



496
497
498
499
500
501
502
503
504
505
506
# File 'lib/sqs/right_sqs_gen2_interface.rb', line 496

def tagend(name)
  case name
  when 'MessageId'     then @current_message['MessageId']     = @text
  when 'ReceiptHandle' then @current_message['ReceiptHandle'] = @text
  when 'MD5OfBody'     then @current_message['MD5OfBody']     = @text
  when 'Name'          then @current_attribute_name  = @text
  when 'Value'         then @current_attribute_value = @text
  when 'Attribute'     then @current_message['Attributes'][@current_attribute_name] = @current_attribute_value
  when 'Body'          then @current_message['Body'] = @text; @result << @current_message
  end
end