Module: CloudSesame::ClassMethods
- Defined in:
- lib/cloud_sesame.rb
Instance Method Summary collapse
Instance Method Details
#cloudsearch ⇒ Object
90 91 92 |
# File 'lib/cloud_sesame.rb', line 90 def cloudsearch @cloudsearch ||= CloudSesame::Domain::Base.new self end |
#define_cloudsearch(&block) ⇒ Object
94 95 96 97 98 99 |
# File 'lib/cloud_sesame.rb', line 94 def define_cloudsearch(&block) if block_given? cloudsearch.definition = block cloudsearch.instance_eval &block end end |
#load_definition_from(klass) ⇒ Object
101 102 103 104 105 |
# File 'lib/cloud_sesame.rb', line 101 def load_definition_from(klass) if klass.respond_to?(:cloudsearch) && klass.cloudsearch.definition cloudsearch.instance_eval &klass.cloudsearch.definition end end |