Class: Brrr::Channel::Category

Inherits:
Feed::Element show all
Defined in:
lib/brrr/channel/category.rb

Instance Method Summary collapse

Methods inherited from Feed::Element

#initialize, #value

Constructor Details

This class inherits a constructor from Brrr::Feed::Element

Instance Method Details

#as_arrayObject



8
9
10
# File 'lib/brrr/channel/category.rb', line 8

def as_array
  node.content.split("/")
end

#as_stringObject



4
5
6
# File 'lib/brrr/channel/category.rb', line 4

def as_string
  node.content
end

#domainObject



12
13
14
# File 'lib/brrr/channel/category.rb', line 12

def domain
  node.attribute("domain")&.value
end