Class: HP::Cloud::Columns
- Inherits:
-
Object
- Object
- HP::Cloud::Columns
- Defined in:
- lib/hpcloud/columns.rb
Instance Attribute Summary collapse
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options, keys) ⇒ Columns
constructor
A new instance of Columns.
Constructor Details
#initialize(options, keys) ⇒ Columns
Returns a new instance of Columns.
28 29 30 31 32 33 34 |
# File 'lib/hpcloud/columns.rb', line 28 def initialize(, keys) if [:columns].nil? @keys = keys else @keys = [:columns].split(',') end end |
Instance Attribute Details
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
26 27 28 |
# File 'lib/hpcloud/columns.rb', line 26 def keys @keys end |
Class Method Details
.option_args ⇒ Object
40 41 42 43 |
# File 'lib/hpcloud/columns.rb', line 40 def self.option_args return { :type => :string, :aliases => '-c', :desc => 'Comma separated list of columns in report.'} end |
.option_name ⇒ Object
36 37 38 |
# File 'lib/hpcloud/columns.rb', line 36 def self.option_name return :columns end |