Class: ActiveFedora::RdfNode::Builder::IndexObject

Inherits:
Object
  • Object
show all
Defined in:
lib/active_fedora/rdf_node.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.



204
205
206
207
# File 'lib/active_fedora/rdf_node.rb', line 204

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

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



203
204
205
# File 'lib/active_fedora/rdf_node.rb', line 203

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



203
204
205
# File 'lib/active_fedora/rdf_node.rb', line 203

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



208
209
210
# File 'lib/active_fedora/rdf_node.rb', line 208

def as(*args)
  @behaviors = args
end

#defaultsObject



214
215
216
# File 'lib/active_fedora/rdf_node.rb', line 214

def defaults
  :noop
end

#type(sym) ⇒ Object



211
212
213
# File 'lib/active_fedora/rdf_node.rb', line 211

def type(sym)
  @data_type = sym
end