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.



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

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

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



11
12
13
# File 'lib/active_fedora/rdf_datastream.rb', line 11

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



11
12
13
# File 'lib/active_fedora/rdf_datastream.rb', line 11

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



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

def as(*args)
  @behaviors = args
end

#defaultsObject



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

def defaults
  :noop
end

#type(sym) ⇒ Object



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

def type(sym)
  @data_type = sym
end