Class: Stretchy::Types::Base

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

Direct Known Subclasses

GeoPoint, Range

Instance Method Summary collapse

Methods included from Utils::Validation

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

Constructor Details

#initializeBase

Returns a new instance of Base.



9
10
11
# File 'lib/stretchy/types/base.rb', line 9

def initialize
  raise "Override this in subclass"
end

Instance Method Details

#to_searchObject



13
14
15
# File 'lib/stretchy/types/base.rb', line 13

def to_search
  raise "Override this in subclass"
end