Class: GoApiClient::LastRun

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idObject (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

#pipelinesArray<Pipeline> (readonly)

A list of pipelines

Returns:

See Also:



26
27
28
# File 'lib/go_api_client.rb', line 26

def pipelines
  @pipelines
end