Class: AtomFeed::AtomCategory

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

Instance Method Summary collapse

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

#labelObject

Human readable label (optional).



19
20
21
# File 'lib/atom_feed/atom_category.rb', line 19

def label
  @node["label"]
end

#schemeObject

A categorization scheme (optional).



14
15
16
# File 'lib/atom_feed/atom_category.rb', line 14

def scheme
  @node["scheme"]
end

#termObject

Identifies the category (required).



9
10
11
# File 'lib/atom_feed/atom_category.rb', line 9

def term
  @node["term"]
end