Class: AppleSystemStatus::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/apple_system_status/cli.rb

Instance Method Summary collapse

Instance Method Details

#fetchObject


10
11
12
13
14
15
16
# File 'lib/apple_system_status/cli.rb', line 10

def fetch
  response = AppleSystemStatus::Crawler.new.perform(
    country: options[:country],
    title:   options[:title],
  )
  puts AppleSystemStatus.format_response(response, options[:format])
end

#versionObject


19
20
21
# File 'lib/apple_system_status/cli.rb', line 19

def version
  puts AppleSystemStatus::VERSION
end