class RemiAudio::Xspf::Meta

Overview

Represents a <meta> element for embedding metadata.

Included Modules

Defined in:

remiaudio/xspf/xspf.cr

Constructors

Instance Method Summary

Constructor Detail

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

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


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

Creates a new Meta instance.


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

[View source]

Instance Method Detail

def content : String #

The value of the metadata. This should be plain text.


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

The value of the metadata. This should be plain text.


[View source]
def rel : URI #

A URI to a resource defining this metadata.


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

A URI to a resource defining this metadata.


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

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


[View source]