Class: GetToWork::Command::LastStory

Inherits:
GetToWork::Command show all
Defined in:
lib/get_to_work/command/last_story.rb

Instance Method Summary collapse

Methods inherited from GetToWork::Command

#config_file, #harvest_service, #initialize, #last_story, #last_timer, run

Methods included from Menu

#menu_ask

Constructor Details

This class inherits a constructor from GetToWork::Command

Instance Method Details

#runObject



4
5
6
7
8
9
# File 'lib/get_to_work/command/last_story.rb', line 4

def run
  last_story_hash = config_file.data["last_story"]
  last_story_id = last_story_hash && last_story_hash["id"]

  shell.say(last_story_id)
end