module Kontena::Cli::Config::TokenSerializer

Public Instance Methods

to_h() click to toggle source

Modified to_h to handle token data serialization

@return [Hash]

Calls superclass method
# File lib/kontena/cli/config.rb, line 534
def to_h
  token = delete_field(:token) if respond_to?(:token)
  result = super
  if token
    self.token = token
    result.merge!(token.to_h)
  end
  result
end