Module: ActiveResourceExtensions::SearchableResource::ClassMethods

Defined in:
lib/active_resource_extensions/searchable_resource.rb

Instance Method Summary collapse

Instance Method Details

#count(params = {}) ⇒ Object



15
16
17
# File 'lib/active_resource_extensions/searchable_resource.rb', line 15

def count params = {}
  get( :count, params )['count'].to_i
end

#search_for(options = {}) ⇒ Object



11
12
13
# File 'lib/active_resource_extensions/searchable_resource.rb', line 11

def search_for options = {}
  SearchableResource::Search.new self, options
end