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.



8
9
10
11
# File 'lib/active_fedora/rdf_datastream.rb', line 8

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

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



7
8
9
# File 'lib/active_fedora/rdf_datastream.rb', line 7

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



7
8
9
# File 'lib/active_fedora/rdf_datastream.rb', line 7

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



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

def as(*args)
  @behaviors = args
end

#defaultsObject



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

def defaults
  :noop
end

#type(sym) ⇒ Object



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

def type(sym)
  @data_type = sym
end