Method: Mtodos::Client#initialize
- Defined in:
- lib/mtodos.rb
#initialize(url, notify_url, cache_file: true, memcached_server: nil) ⇒ Client
Returns a new instance of Client.
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/mtodos.rb', line 47 def initialize(url, notify_url, cache_file: true, memcached_server: nil) @url = url @notify_url = notify_url if cache_file @cache = Cache.new else initialize_memcache(memcached_server) end initialize_resource_type(url) end |