Sha256: 5c118706b8d378cca62d714ab594d97465959c784337ca8dff75eef840e03c18
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 Bytes
Contents
module RelatonBib # Typed URI class TypedUri # @return [Symbol] :src/:obp/:rss attr_reader :type # @retutn [URI] attr_reader :content # @param type [String] src/obp/rss # @param content [String] def initialize(type:, content:) @type = type @content = URI content if content end def to_xml(builder) builder.uri(content.to_s, type: type) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
relaton-bib-0.1.2 | lib/relaton_bib/typed_uri.rb |
relaton-bib-0.1.1 | lib/relaton_bib/typed_uri.rb |
relaton-bib-0.1.0 | lib/relaton_bib/typed_uri.rb |