Module: Portero::SearchProvider::InstanceMethods
- Defined in:
- lib/portero/search_provider.rb
Instance Method Summary collapse
- #initialize(options = {}) ⇒ Object
- #search(connection, query, latitude, longitude, options = {}) ⇒ Object
- #validate_options ⇒ Object
Instance Method Details
#initialize(options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/portero/search_provider.rb', line 23 def initialize( = {}) @provider_options = end |
#search(connection, query, latitude, longitude, options = {}) ⇒ Object
28 29 30 |
# File 'lib/portero/search_provider.rb', line 28 def search(connection, query, latitude, longitude, = {}) self.class.api_not_implemented(self) end |
#validate_options ⇒ Object
32 33 34 35 36 |
# File 'lib/portero/search_provider.rb', line 32 def self.class..each do |key| raise MissingRequirementError.new("#{self.class.name} needs an options hash key of '#{key}' to function") unless @provider_options.has_key?(key) end end |