Class: Wayfarer::Networking::Healer
- Inherits:
-
Struct
- Object
- Struct
- Wayfarer::Networking::Healer
- Extended by:
- Forwardable
- Defined in:
- lib/wayfarer/networking/healer.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
Instance Method Summary collapse
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter
8 9 10 |
# File 'lib/wayfarer/networking/healer.rb', line 8 def adapter @adapter end |
Instance Method Details
#fetch(url) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/wayfarer/networking/healer.rb', line 13 def fetch(url) adapter.fetch(url) rescue *adapter.class.renew_on => e adapter.renew raise e end |