Class: FWToolkit::Test::FrankModel

Inherits:
Object
  • Object
show all
Defined in:
lib/fwtoolkit/test/frank_model.rb

Defined Under Namespace

Modules: PickleAdapter

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#core_data_entityObject

Returns the value of attribute core_data_entity.



55
56
57
# File 'lib/fwtoolkit/test/frank_model.rb', line 55

def core_data_entity
  @core_data_entity
end

#idObject

Returns the value of attribute id.



55
56
57
# File 'lib/fwtoolkit/test/frank_model.rb', line 55

def id
  @id
end

Class Method Details

.all_objectsObject



95
96
97
# File 'lib/fwtoolkit/test/frank_model.rb', line 95

def self.all_objects
  FWToolkit::Test::FrankCache.all_objects(self)
end

.find(id) ⇒ Object



103
104
105
# File 'lib/fwtoolkit/test/frank_model.rb', line 103

def self.find(id)
  FWToolkit::Test::FrankCache.find(id)
end

.find_all(conditions = {}) ⇒ Object



111
112
113
# File 'lib/fwtoolkit/test/frank_model.rb', line 111

def self.find_all(conditions={})
  FWToolkit::Test::FrankCache.find_all(self, conditions)
end

.find_first(conditions = {}) ⇒ Object



107
108
109
# File 'lib/fwtoolkit/test/frank_model.rb', line 107

def self.find_first(conditions={})
  FWToolkit::Test::FrankCache.find_first(self, conditions)
end

.object_in_cache(id) ⇒ Object



91
92
93
# File 'lib/fwtoolkit/test/frank_model.rb', line 91

def self.object_in_cache(id)
  FWToolkit::Test::FrankCache.find(id)
end

Instance Method Details

#save!Object



99
100
101
# File 'lib/fwtoolkit/test/frank_model.rb', line 99

def save!
  FWToolkit::Test::FrankCache.add_object(self)
end