class RemiAudio::Xspf::Attribution
- RemiAudio::Xspf::Attribution
- Reference
- Object
Overview
An Attribution
contains additional information that can be used to satisfy
attribution requirements for licenses.
Included Modules
- JSON::Serializable
Defined in:
remiaudio/xspf/xspf.crConstructors
-
.fromXML(parent : XML::Node, ns : XML::Namespace | Nil) : Attribution
Creates a new
Attribution
instance by parsing XML starting atparent
. - .new(pull : JSON::PullParser)
-
.new
Creates a new, empty
Attribution
instance.
Instance Method Summary
-
#identifiers : Array(URI)
A list of identifiers of the attributions.
-
#identifiers=(identifiers : Array(URI))
A list of identifiers of the attributions.
-
#locations : Array(URI)
A list of URIs pointing to locations of attributions.
-
#locations=(locations : Array(URI))
A list of URIs pointing to locations of attributions.
-
#write(xml : XML::Builder) : Nil
Writes this instance to an
XML::Builder
for serialization.
Constructor Detail
def self.fromXML(parent : XML::Node, ns : XML::Namespace | Nil) : Attribution
#
Creates a new Attribution
instance by parsing XML starting at parent
.
The parent
node should be the <attribution>
element itself.
Instance Method Detail
A list of identifiers of the attributions.
A list of URIs pointing to locations of attributions.