Class: Magicseaweed::CLI

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

Overview

Define commands for CLI

Instance Method Summary collapse

Instance Method Details

#forecast(api_key, spot_id) ⇒ Object



10
11
12
13
# File 'lib/magicseaweed/cli.rb', line 10

def forecast(api_key, spot_id)
  forecast = Magicseaweed::Forecast.new(api_key: api_key, spot_id: spot_id)
  puts forecast
end