Class: HammerCLI::Output::Generators::Table::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli/output/generators/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, params = nil) ⇒ Column

Returns a new instance of Column.



10
11
12
13
# File 'lib/hammer_cli/output/generators/table.rb', line 10

def initialize(label, params = nil)
  @label = label.to_s
  @params = params || {}
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



8
9
10
# File 'lib/hammer_cli/output/generators/table.rb', line 8

def label
  @label
end

#paramsObject (readonly)

Returns the value of attribute params.



8
9
10
# File 'lib/hammer_cli/output/generators/table.rb', line 8

def params
  @params
end