Class: GetToWork::Command::LastStory
- Inherits:
-
GetToWork::Command
- Object
- GetToWork::Command
- GetToWork::Command::LastStory
- 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
Constructor Details
This class inherits a constructor from GetToWork::Command
Instance Method Details
#run ⇒ Object
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 |