Class: UzuUzu::Memcache::Appengine
- Defined in:
- lib/uzuuzu-core/memcache/appengine.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
Instance Method Summary collapse
-
#initialize(env = nil) ⇒ Appengine
constructor
A new instance of Appengine.
- #method_missing(action, *args) ⇒ Object
Constructor Details
#initialize(env = nil) ⇒ Appengine
Returns a new instance of Appengine.
16 17 18 19 |
# File 'lib/uzuuzu-core/memcache/appengine.rb', line 16 def initialize(env=nil) @adapter = :appengine @memcache = ::AppEngine::Memcache.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(action, *args) ⇒ Object
24 25 26 |
# File 'lib/uzuuzu-core/memcache/appengine.rb', line 24 def method_missing(action, *args) @memcahce.send(action, args) end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
12 13 14 |
# File 'lib/uzuuzu-core/memcache/appengine.rb', line 12 def adapter @adapter end |