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.



163
164
165
166
# File 'lib/active_fedora/rdf_node.rb', line 163

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

Instance Attribute Details

#behaviorsObject

Returns the value of attribute behaviors.



162
163
164
# File 'lib/active_fedora/rdf_node.rb', line 162

def behaviors
  @behaviors
end

#data_typeObject

Returns the value of attribute data_type.



162
163
164
# File 'lib/active_fedora/rdf_node.rb', line 162

def data_type
  @data_type
end

Instance Method Details

#as(*args) ⇒ Object



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

def as(*args)
  @behaviors = args
end

#defaultsObject



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

def defaults
  :noop
end

#type(sym) ⇒ Object



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

def type(sym)
  @data_type = sym
end