class IsoBibItem::TypedUri
Typed URI
Attributes
content[R]
@retutn [URI]
type[R]
@return [Symbol] :src/:obp/:rss
Public Class Methods
new(type:, content:)
click to toggle source
@param type [String] src/obp/rss @param content [String]
# File lib/iso_bib_item/bibliographic_item.rb, line 87 def initialize(type:, content:) @type = type @content = URI content if content end
Public Instance Methods
to_xml(builder)
click to toggle source
# File lib/iso_bib_item/bibliographic_item.rb, line 92 def to_xml(builder) builder.uri(content.to_s, type: type) end