Class Rufus::SQS::Queue

  1. lib/rufus/sqs.rb
Parent: Object

An SQS queue (gathering all the necessary info about it in a single class).

Methods

public class

  1. new

Attributes

host [R]
name [R]
path [R]
queue_service [R]

Public class methods

new (queue_service, xml_element)
[show source]
    # File lib/rufus/sqs.rb, line 76
76:     def initialize (queue_service, xml_element)
77: 
78:       @queue_service = queue_service
79: 
80:       s = xml_element.text.to_s
81:       m = Regexp.compile('^http://(.*)(/.*)(/.*$)').match(s)
82:       @host = m[1]
83:       @name = m[3][1..-1]
84:       @path = m[2] + m[3]
85:     end