Class: Kube::Ctl::CommandTree::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/kube/ctl/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



10
11
12
# File 'lib/kube/ctl/command_tree.rb', line 10

def commands
  @commands
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



10
11
12
# File 'lib/kube/ctl/command_tree.rb', line 10

def errors
  @errors
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



10
11
12
# File 'lib/kube/ctl/command_tree.rb', line 10

def flags
  @flags
end

#resourcesObject

Returns the value of attribute resources

Returns:

  • (Object)

    the current value of resources



10
11
12
# File 'lib/kube/ctl/command_tree.rb', line 10

def resources
  @resources
end

#validObject

Returns the value of attribute valid

Returns:

  • (Object)

    the current value of valid



10
11
12
# File 'lib/kube/ctl/command_tree.rb', line 10

def valid
  @valid
end

Instance Method Details

#to_sObject



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

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