Class: ValorantDailyStore::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/valorant_daily_store/cli.rb', line 8

def self.exit_on_failure?
  true
end

Instance Method Details

#getObject



18
19
20
21
22
23
# File 'lib/valorant_daily_store/cli.rb', line 18

def get
  response = Data.new(username: options[:username], password: options[:password], region: options[:region], language: options[:language]).get
  puts JSON.pretty_generate(response)
rescue => e
  puts "ERROR: #{e.message}"
end