class RemiAudio::Xspf::Link
- RemiAudio::Xspf::Link
- Reference
- Object
Overview
Represents a <link>
element.
Included Modules
- JSON::Serializable
Defined in:
remiaudio/xspf/xspf.crConstructors
-
.fromXML(parent : XML::Node, ns : XML::Namespace | Nil) : Link
Creates a new
Link
instance by parsing XML starting atparent
. -
.new(rel : URI, content : URI)
Creates a new
Link
instance. - .new(pull : JSON::PullParser)
Instance Method Summary
-
#content : URI
The actual link as a URI.
-
#content=(content : URI)
The actual link as a URI.
-
#rel : URI
The relation for this link as a URI that points to a resource type.
-
#rel=(rel : URI)
The relation for this link as a URI that points to a resource type.
-
#write(xml : XML::Builder) : Nil
Writes this instance to an
XML::Builder
for serialization.
Constructor Detail
Creates a new Link
instance by parsing XML starting at parent
. The
parent
node should be the <link>
element itself.
Instance Method Detail
The relation for this link as a URI that points to a resource type.