Class: FlexmlsApi::Models::SavedSearch

Inherits:
Base
  • Object
show all
Extended by:
Finders
Defined in:
lib/flexmls_api/models/saved_search.rb

Constant Summary

Constants included from Paginate

Paginate::DEFAULT_PAGE_SIZE

Instance Attribute Summary

Attributes inherited from Base

#attributes, #changed, #errors

Class Method Summary collapse

Methods included from Finders

find, first, last

Methods inherited from Base

#connection, connection, count, element_name, element_name=, first, get, #initialize, #load, #method_missing, #parse_id, path, prefix, prefix=, #respond_to?

Methods included from Paginate

#collect, #paginate, #per_page

Constructor Details

This class inherits a constructor from FlexmlsApi::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FlexmlsApi::Models::Base

Class Method Details

.providedObject



7
8
9
10
11
12
13
# File 'lib/flexmls_api/models/saved_search.rb', line 7

def self.provided()
  Class.new(self).tap do |provided|
    provided.element_name = '/savedsearches'
    provided.prefix = '/provided'
    FlexmlsApi.logger.info("#{self.name}.path: #{provided.path}")
  end
end