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.



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

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

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



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

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



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

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



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

def as(*args)
  @behaviors = args
end

#defaultsObject



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

def defaults
  :noop
end

#type(sym) ⇒ Object



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

def type(sym)
  @data_type = sym
end