class RSS::Category

Defined in:

cryss/category.cr

Constructors

Instance Method Summary

Instance methods inherited from class RSS::Element

ns(name : String, &) ns, to_s(io : IO) to_s, to_xml(io : IO)
to_xml(xml : XML::Builder)
to_xml

Constructor Detail

def self.new(name : String, domain : URI | String | Nil = nil) #

[View source]

Instance Method Detail

def domain : URI | Nil #

Optional attribute that identifies a categorization taxonomy.


[View source]
def name : String #

Includes the item in one or more categories.

The value of the element is a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy. Processors may establish conventions for the interpretation of categories. Two examples are provided below:


[View source]
def to_xml(xml : XML::Builder) #
Description copied from class RSS::Element

Writes the generated XML to the provided xml builder.


[View source]