Module: Kontena::Cli::Config::Fields
- Included in:
- Kontena::Cli::Config, Account, Server, Token
- Defined in:
- lib/kontena/cli/config.rb
Instance Method Summary collapse
Instance Method Details
#keys ⇒ Object
17 18 19 |
# File 'lib/kontena/cli/config.rb', line 17 def keys @table.keys end |
#values_at(*fields) ⇒ Object
21 22 23 |
# File 'lib/kontena/cli/config.rb', line 21 def values_at(*fields) (fields.first.is_a?(Array) ? fields.first : fields).map { |field| self[field] } end |