Class: Brrr::Channel::Category
- Inherits:
-
Feed::Element
- Object
- Feed::Element
- Brrr::Channel::Category
- Defined in:
- lib/brrr/channel/category.rb
Instance Method Summary collapse
Methods inherited from Feed::Element
Constructor Details
This class inherits a constructor from Brrr::Feed::Element
Instance Method Details
#as_array ⇒ Object
8 9 10 |
# File 'lib/brrr/channel/category.rb', line 8 def as_array node.content.split("/") end |
#as_string ⇒ Object
4 5 6 |
# File 'lib/brrr/channel/category.rb', line 4 def as_string node.content end |
#domain ⇒ Object
12 13 14 |
# File 'lib/brrr/channel/category.rb', line 12 def domain node.attribute("domain")&.value end |