Sha256: 6ceaccb5e58bca3a52eeb8094671695fb742014069f0f9e7e84eb454828f1513

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

module RelatonItu
  class ItuBibliographicItem < RelatonBib::BibliographicItem
    # @params structuredidentifier [RelatonItu::StructuredIdentifier]
    # def initialize(**args)
    #   super
    # end

    #
    # Fetch flavor schema version
    #
    # @return [String] flavor schema version
    #
    def ext_schema
      @ext_schema ||= schema_versions["relaton-model-itu"]
    end

    # @param hash [Hash]
    # @return [RelatonItu::ItuBibliographicItem]
    def self.from_hash(hash)
      item_hash = ::RelatonItu::HashConverter.hash_to_bib(hash)
      new(**item_hash)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
relaton-itu-1.19.3 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.19.2 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.19.1 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.19.0 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.18.1 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.18.0 lib/relaton_itu/itu_bibliographic_item.rb
relaton-itu-1.17.0 lib/relaton_itu/itu_bibliographic_item.rb