Class: Spider::Test::MapperStub

Inherits:
Model::Mapper show all
Defined in:
lib/spiderfw/test/stubs/mapper_stub.rb

Instance Attribute Summary

Attributes inherited from Model::Mapper

#model, #storage, #type

Instance Method Summary collapse

Methods inherited from Model::Mapper

#after_delete, #after_save, #association_elements, #base_type, #basic_preprocess, #before_delete, #before_insert, #before_save, #before_update, #bulk_update, #children_for_unit_of_work, #count, #delete, #delete_all!, #delete_element_associations, #determine_save_mode, #execute_action, #find, #get_dependencies, #initialize, #insert, #load, #load_element, #load_element!, #map_back_value, #map_condition_value, #map_save_value, #map_value, #mapped?, #no_map, #normalize, #prepare_delete_condition, #queryset_siblings, #save, #save_all, #save_associations, #save_done, #save_element_associations, #save_extended_models, #save_integrated, #set_pks_condition, #sortable?, #storage_value_to_mapper, #update, write?

Constructor Details

This class inherits a constructor from Spider::Model::Mapper

Instance Method Details

#do_insert(obj) ⇒ Object



13
14
# File 'lib/spiderfw/test/stubs/mapper_stub.rb', line 13

def do_insert(obj)
end

#fetch(query) ⇒ Object



5
6
7
# File 'lib/spiderfw/test/stubs/mapper_stub.rb', line 5

def fetch(query)
    Spider::Model::QuerySet.static(@model)
end

#have_references?(element) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/spiderfw/test/stubs/mapper_stub.rb', line 9

def have_references?(element)
    false
end