Class: ThinkingSphinx::RealTime::Attribute

Inherits:
Property
  • Object
show all
Defined in:
lib/thinking_sphinx/real_time/attribute.rb

Instance Attribute Summary

Attributes inherited from Property

#options

Instance Method Summary (collapse)

Methods inherited from Property

#initialize, #name

Methods included from Core::Property

#facet?

Constructor Details

This class inherits a constructor from ThinkingSphinx::RealTime::Property

Instance Method Details

- (Boolean) multi?



2
3
4
# File 'lib/thinking_sphinx/real_time/attribute.rb', line 2

def multi?
  @options[:multi]
end

- (Object) translate(object)



10
11
12
# File 'lib/thinking_sphinx/real_time/attribute.rb', line 10

def translate(object)
  super || default_value
end

- (Object) type



6
7
8
# File 'lib/thinking_sphinx/real_time/attribute.rb', line 6

def type
  @options[:type]
end