Module: Opera::MobileStoreSDK::IdentityMapable::ClassMethods
- Defined in:
- lib/opera/mobile_store_sdk/identity_mapable.rb
Instance Method Summary collapse
- #find(given_id, hint_options = {}) ⇒ Object
- #identity_map ⇒ Object
- #identity_mapped?(object_id) ⇒ Boolean
Instance Method Details
#find(given_id, hint_options = {}) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/opera/mobile_store_sdk/identity_mapable.rb', line 29 def find(given_id, = {}) if identity_map.key?(given_id) identity_map[given_id] else raise "Not Implemented" end end |
#identity_map ⇒ Object
25 26 27 |
# File 'lib/opera/mobile_store_sdk/identity_mapable.rb', line 25 def identity_map @_identity_map ||= {} end |
#identity_mapped?(object_id) ⇒ Boolean
37 38 39 |
# File 'lib/opera/mobile_store_sdk/identity_mapable.rb', line 37 def identity_mapped?(object_id) identity_map.key? object_id end |