Module: Rufus::SQS

Defined in:
lib/rufus/sqs.rb

Defined Under Namespace

Classes: Message, Queue, QueueService

Class Method Summary collapse

Class Method Details

.get_element_text(parent_elt, elt_name) ⇒ Object

A convenience method for returning the text of a sub element, maybe there is something better in REXML, but I haven’t found out yet.



428
429
430
431
432
433
# File 'lib/rufus/sqs.rb', line 428

def SQS.get_element_text (parent_elt, elt_name)

    e = parent_elt.elements[elt_name]
    return nil unless e
    e.text.to_s
end