Class: GoApiClient::LastRun
- Inherits:
-
Object
- Object
- GoApiClient::LastRun
- Defined in:
- lib/go_api_client.rb
Overview
A wrapper that contains the last run information of scraping the go atom feed
Instance Attribute Summary collapse
-
#latest_atom_entry_id ⇒ Object
readonly
The most recent atom entry when the feed was last fetched.
-
#pipelines ⇒ Array<Pipeline>
readonly
A list of pipelines.
Instance Method Summary collapse
-
#initialize(pipelines, latest_atom_entry_id) ⇒ LastRun
constructor
A new instance of LastRun.
Constructor Details
#initialize(pipelines, latest_atom_entry_id) ⇒ LastRun
Returns a new instance of LastRun.
31 32 33 34 |
# File 'lib/go_api_client.rb', line 31 def initialize(pipelines, latest_atom_entry_id) @pipelines = pipelines @latest_atom_entry_id = latest_atom_entry_id end |
Instance Attribute Details
#latest_atom_entry_id ⇒ Object (readonly)
The most recent atom entry when the feed was last fetched
29 30 31 |
# File 'lib/go_api_client.rb', line 29 def latest_atom_entry_id @latest_atom_entry_id end |
#pipelines ⇒ Array<Pipeline> (readonly)
A list of pipelines
26 27 28 |
# File 'lib/go_api_client.rb', line 26 def pipelines @pipelines end |