Class: CMSBinding::Queue

Inherits:
Object
  • Object
show all
Defined in:
lib/twm-cms-bindings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#articlesObject (readonly)

Returns the value of attribute articles.



66
67
68
# File 'lib/twm-cms-bindings.rb', line 66

def articles
  @articles
end

#queue_nameObject (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_typeObject (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