Class: GemsBond::Fetchers::Fetcher
- Inherits:
-
Object
- Object
- GemsBond::Fetchers::Fetcher
- Defined in:
- lib/gems_bond/fetchers/fetcher.rb
Overview
Fetches data
Instance Method Summary collapse
-
#initialize(param) ⇒ GemsBond::Fetchers::Fetcher
constructor
Initializes an instance.
-
#start ⇒ Object
Starts the service and returns self.
-
#started? ⇒ Boolean
Is the service started?.
-
#stop ⇒ Object
Starts the service and returns self.
Constructor Details
#initialize(param) ⇒ GemsBond::Fetchers::Fetcher
Initializes an instance
14 |
# File 'lib/gems_bond/fetchers/fetcher.rb', line 14 def initialize(param); end |
Instance Method Details
#start ⇒ Object
Note:
rescue connection errors with nil
Starts the service and returns self
18 19 20 |
# File 'lib/gems_bond/fetchers/fetcher.rb', line 18 def start @started = true end |
#started? ⇒ Boolean
Is the service started?
29 30 31 |
# File 'lib/gems_bond/fetchers/fetcher.rb', line 29 def started? @started end |
#stop ⇒ Object
Note:
rescue connection errors with nil
Starts the service and returns self
24 25 26 |
# File 'lib/gems_bond/fetchers/fetcher.rb', line 24 def stop @started = false end |