Class: AtomFeed::AtomGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/atom_feed/atom_generator.rb

Instance Method Summary collapse

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_sObject 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

#uriObject

URI (optional)



16
17
18
# File 'lib/atom_feed/atom_generator.rb', line 16

def uri
  @node["uri"]
end

#versionObject

Version (optional)



21
22
23
# File 'lib/atom_feed/atom_generator.rb', line 21

def version
  @node["version"]
end