Class: ValorantDailyStore::CLI
- Inherits:
-
Thor
- Object
- Thor
- ValorantDailyStore::CLI
- Defined in:
- lib/valorant_daily_store/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
8 9 10 |
# File 'lib/valorant_daily_store/cli.rb', line 8 def self.exit_on_failure? true end |
Instance Method Details
#get ⇒ Object
18 19 20 21 22 23 |
# File 'lib/valorant_daily_store/cli.rb', line 18 def get response = Data.new(username: [:username], password: [:password], region: [:region], language: [:language]).get puts JSON.pretty_generate(response) rescue => e puts "ERROR: #{e.message}" end |