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.



167
168
169
170
# File 'lib/active_fedora/rdf_node.rb', line 167

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

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



166
167
168
# File 'lib/active_fedora/rdf_node.rb', line 166

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



166
167
168
# File 'lib/active_fedora/rdf_node.rb', line 166

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



171
172
173
# File 'lib/active_fedora/rdf_node.rb', line 171

def as(*args)
  @behaviors = args
end

#defaultsObject



177
178
179
# File 'lib/active_fedora/rdf_node.rb', line 177

def defaults
  :noop
end

#type(sym) ⇒ Object



174
175
176
# File 'lib/active_fedora/rdf_node.rb', line 174

def type(sym)
  @data_type = sym
end