Class: ActiveFedora::RDFDatastream::IndexObject

Inherits:
Object
  • Object
show all
Defined in:
lib/active_fedora/rdf_datastream.rb

Overview

this enables a cleaner API for solr integration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIndexObject

Returns a new instance of IndexObject.



14
15
16
17
# File 'lib/active_fedora/rdf_datastream.rb', line 14

def initialize
  @behaviors = [:searchable]
  @data_type = :string
end

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



13
14
15
# File 'lib/active_fedora/rdf_datastream.rb', line 13

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



13
14
15
# File 'lib/active_fedora/rdf_datastream.rb', line 13

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



18
19
20
# File 'lib/active_fedora/rdf_datastream.rb', line 18

def as(*args)
  @behaviors = args
end

#defaultsObject



24
25
26
# File 'lib/active_fedora/rdf_datastream.rb', line 24

def defaults
  :noop
end

#type(sym) ⇒ Object



21
22
23
# File 'lib/active_fedora/rdf_datastream.rb', line 21

def type(sym)
  @data_type = sym
end