Class: Stretchy::Boosts::Base

Inherits:
Object
  • Object
show all
Includes:
Utils::Validation
Defined in:
lib/stretchy/boosts/base.rb

Constant Summary collapse

DEFAULT_WEIGHT =
1.2

Instance Method Summary collapse

Methods included from Utils::Validation

#errors, included, #json_attributes, #require_one!, #require_only_one!, #valid?, #validate!, #validator

Constructor Details

#initializeBase

Returns a new instance of Base.



11
12
13
# File 'lib/stretchy/boosts/base.rb', line 11

def initialize
  raise "Override this in subclass"
end

Instance Method Details

#to_searchObject



15
16
17
# File 'lib/stretchy/boosts/base.rb', line 15

def to_search
  raise "Override this in subclass"
end