Class: AtomFeed::AtomCategory
Instance Method Summary collapse
-
#initialize(node) ⇒ AtomCategory
constructor
Initializes the link.
-
#label ⇒ Object
Human readable label (optional).
-
#scheme ⇒ Object
A categorization scheme (optional).
-
#term ⇒ Object
Identifies the category (required).
Constructor Details
#initialize(node) ⇒ AtomCategory
Initializes the link.
4 5 6 |
# File 'lib/atom_feed/atom_category.rb', line 4 def initialize(node) @node = node end |
Instance Method Details
#label ⇒ Object
Human readable label (optional).
19 20 21 |
# File 'lib/atom_feed/atom_category.rb', line 19 def label @node["label"] end |
#scheme ⇒ Object
A categorization scheme (optional).
14 15 16 |
# File 'lib/atom_feed/atom_category.rb', line 14 def scheme @node["scheme"] end |
#term ⇒ Object
Identifies the category (required).
9 10 11 |
# File 'lib/atom_feed/atom_category.rb', line 9 def term @node["term"] end |