Method: Playapi::Base.store
- Defined in:
- lib/playapi/base.rb
.store(object) ⇒ Playapi::Base
Stores an object in the identity map.
45 46 47 48 49 |
# File 'lib/playapi/base.rb', line 45 def self.store(object) return object unless identity_map # should this operate on type even though not ever response returns type? (campaign/entities) identity_map.store("#{self.class.to_s.downcase}:#{object.id}", object) end |