Class: Aptible::CLI::Formatter::KeyedList
- Defined in:
- lib/aptible/cli/formatter/keyed_list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
KeyedList is a list of objects with one key that is more important than the others.
Attributes inherited from List
Instance Method Summary collapse
-
#initialize(key) ⇒ KeyedList
constructor
A new instance of KeyedList.
- #list ⇒ Object
- #value(_) ⇒ Object
Methods inherited from List
Constructor Details
#initialize(key) ⇒ KeyedList
Returns a new instance of KeyedList.
10 11 12 13 |
# File 'lib/aptible/cli/formatter/keyed_list.rb', line 10 def initialize(key) @key = key super() end |
Instance Attribute Details
#key ⇒ Object (readonly)
KeyedList is a list of objects with one key that is more important than the others. Some renderers may opt to only display this key when rendering the list.
8 9 10 |
# File 'lib/aptible/cli/formatter/keyed_list.rb', line 8 def key @key end |