Class: AtomFeed::AtomGenerator
- Defined in:
- lib/atom_feed/atom_generator.rb
Instance Method Summary collapse
-
#initialize(node) ⇒ AtomGenerator
constructor
Initializes the generator element.
-
#to_s ⇒ Object
(also: #content)
Content of the generator.
-
#uri ⇒ Object
URI (optional).
-
#version ⇒ Object
Version (optional).
Constructor Details
#initialize(node) ⇒ AtomGenerator
Initializes the generator element.
4 5 6 |
# File 'lib/atom_feed/atom_generator.rb', line 4 def initialize(node) @node = node end |
Instance Method Details
#to_s ⇒ Object Also known as: content
Content of the generator
9 10 11 |
# File 'lib/atom_feed/atom_generator.rb', line 9 def to_s @node.content end |
#uri ⇒ Object
URI (optional)
16 17 18 |
# File 'lib/atom_feed/atom_generator.rb', line 16 def uri @node["uri"] end |
#version ⇒ Object
Version (optional)
21 22 23 |
# File 'lib/atom_feed/atom_generator.rb', line 21 def version @node["version"] end |