Module: Xapit::Client::Membership::AdditionalMethods

Defined in:
lib/xapit/client/membership.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
20
# File 'lib/xapit/client/membership.rb', line 17

def self.included(base)
  base.extend ClassMethods
  base.xapit_model_adapter.setup
end

Instance Method Details

#search_similar(*args) ⇒ Object



40
41
42
# File 'lib/xapit/client/membership.rb', line 40

def search_similar(*args)
  self.class.search(*args).similar_to(self)
end