Class: Weekdone::Cli::Company

Inherits:
Thor
  • Object
show all
Includes:
Weekdone::Cli
Defined in:
lib/weekdone/cli/command_company.rb

Constant Summary

Constants included from Weekdone::Cli

VERSION

Instance Method Summary collapse

Methods included from Weekdone::Cli

#build_client

Instance Method Details

#infoObject



14
15
16
17
18
19
20
# File 'lib/weekdone/cli/command_company.rb', line 14

def info
  client = build_client

  info = client.getCompanyInfo
  Credential.write_credential(client.token_hash)
  Output.format(info, format: :json)
end