Class: Hydra::Datastream::Properties

Inherits:
ActiveFedora::OmDatastream
  • Object
show all
Extended by:
Deprecation
Defined in:
app/models/hydra/datastream/properties.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProperties

Returns a new instance of Properties.



6
7
8
9
# File 'app/models/hydra/datastream/properties.rb', line 6

def initialize(*)
  super
  Deprecation.warn(Properties, "Hydra::Datastream::Properties is deprecated and will be removed in hydra-head 10.0")
end

Class Method Details

.xml_templateObject



23
24
25
26
27
28
29
# File 'app/models/hydra/datastream/properties.rb', line 23

def self.xml_template
  builder = Nokogiri::XML::Builder.new do |xml|
    xml.fields
  end

  builder.doc
end