Class: CMSBinding::Queue
- Inherits:
-
Object
- Object
- CMSBinding::Queue
- Defined in:
- lib/twm-cms-bindings.rb
Instance Attribute Summary collapse
-
#articles ⇒ Object
readonly
Returns the value of attribute articles.
-
#queue_name ⇒ Object
readonly
Returns the value of attribute queue_name.
-
#queue_type ⇒ Object
readonly
Returns the value of attribute queue_type.
Instance Method Summary collapse
-
#initialize(queue_dom, source, queue_name, queue_type) ⇒ Queue
constructor
A new instance of Queue.
Constructor Details
#initialize(queue_dom, source, queue_name, queue_type) ⇒ Queue
Returns a new instance of Queue.
68 69 70 71 72 73 74 75 76 77 |
# File 'lib/twm-cms-bindings.rb', line 68 def initialize (queue_dom, source, queue_name, queue_type) @source = source @queue_name = queue_name @queue_type = queue_type @articles = [] REXML::XPath.each(queue_dom, "article") { |article| @articles << CMSBinding::Article.new( article, source, false ) } end |
Instance Attribute Details
#articles ⇒ Object (readonly)
Returns the value of attribute articles.
66 67 68 |
# File 'lib/twm-cms-bindings.rb', line 66 def articles @articles end |
#queue_name ⇒ Object (readonly)
Returns the value of attribute queue_name.
66 67 68 |
# File 'lib/twm-cms-bindings.rb', line 66 def queue_name @queue_name end |
#queue_type ⇒ Object (readonly)
Returns the value of attribute queue_type.
66 67 68 |
# File 'lib/twm-cms-bindings.rb', line 66 def queue_type @queue_type end |