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
Attributioninstance by parsing XML starting atparent. - .new(pull : JSON::PullParser)
-
.new
Creates a new, empty
Attributioninstance.
Instance Method Summary
- #identifiers : Array(URI)
- #identifiers=(identifiers : Array(URI))
- #locations : Array(URI)
- #locations=(locations : Array(URI))
-
#write(xml : XML::Builder) : Nil
Writes this instance to an
XML::Builderfor 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.