module Sidetree module Model class Chunk attr_reader :chunk_file_uri # Initializer # @param [String] chunk_file_uri chunk file uri. # @raise [Sidetree::Error] def initialize(chunk_file_uri) unless chunk_file_uri.is_a?(String) raise Sidetree::Error, "chunk_file_uri must be String" end @chunk_file_uri = chunk_file_uri end def to_h { chunkFileUri: chunk_file_uri } end end end end