Class: Kube::Helm::CommandTree::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/kube/helm/command_tree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commandsObject

Returns the value of attribute commands

Returns:

  • (Object)

    the current value of commands



9
10
11
# File 'lib/kube/helm/command_tree.rb', line 9

def commands
  @commands
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



9
10
11
# File 'lib/kube/helm/command_tree.rb', line 9

def errors
  @errors
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



9
10
11
# File 'lib/kube/helm/command_tree.rb', line 9

def flags
  @flags
end

#positionalObject

Returns the value of attribute positional

Returns:

  • (Object)

    the current value of positional



9
10
11
# File 'lib/kube/helm/command_tree.rb', line 9

def positional
  @positional
end

#validObject

Returns the value of attribute valid

Returns:

  • (Object)

    the current value of valid



9
10
11
# File 'lib/kube/helm/command_tree.rb', line 9

def valid
  @valid
end

Instance Method Details

#to_sObject



10
11
12
13
14
15
16
# File 'lib/kube/helm/command_tree.rb', line 10

def to_s
  parts = []
  parts.concat(commands)
  parts.concat(positional)
  parts.concat(flags)
  parts.join(" ")
end