Class: CivoCLI::Region
- Inherits:
-
Thor
- Object
- Thor
- CivoCLI::Region
- Defined in:
- lib/region.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/region.rb', line 4 def list CivoCLI::Config.set_api_auth rows = [] Civo::Region.all.items.each do |region| rows << [region.code] end puts Terminal::Table.new headings: ['Code'], rows: rows end |