Class: ShareDataWatcher::Type::Fetch
- Defined in:
- lib/share-data-watcher/type/fetch.rb
Overview
Fetch Type For cache share watch
Instance Attribute Summary collapse
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#restart, #shutdown, #to_h, #valid?
Methods included from Loggable
Constructor Details
Instance Attribute Details
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/share-data-watcher/type/fetch.rb', line 8 def timeout @timeout end |
Instance Method Details
#get(**params) ⇒ Object
18 19 20 21 |
# File 'lib/share-data-watcher/type/fetch.rb', line 18 def get(**params) key = fetch_key(params) values[key.to_sym] || fetch(key) end |