class RemiAudio::Xspf::Link

Overview

Represents a <link> element.

Included Modules

Defined in:

remiaudio/xspf/xspf.cr

Constructors

Instance Method Summary

Constructor Detail

def self.fromXML(parent : XML::Node, ns : XML::Namespace | Nil) : Link #

Creates a new Link instance by parsing XML starting at parent. The parent node should be the <link> element itself.


[View source]
def self.new(rel : URI, content : URI) #

Creates a new Link instance.


[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def content : URI #

The actual link as a URI.


[View source]
def content=(content : URI) #

The actual link as a URI.


[View source]
def rel : URI #

The relation for this link as a URI that points to a resource type.


[View source]
def rel=(rel : URI) #

The relation for this link as a URI that points to a resource type.


[View source]
def write(xml : XML::Builder) : Nil #

Writes this instance to an XML::Builder for serialization.


[View source]