Class: Aptible::CLI::Formatter::KeyedObject
- Defined in:
- lib/aptible/cli/formatter/keyed_object.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
KeyedObject is rendered as an Object, but flags a given key as being more important.
Attributes inherited from Object
Instance Method Summary collapse
-
#initialize(key) ⇒ KeyedObject
constructor
A new instance of KeyedObject.
Methods inherited from Object
#keyed_object, #list, #object, #value
Constructor Details
#initialize(key) ⇒ KeyedObject
Returns a new instance of KeyedObject.
9 10 11 12 |
# File 'lib/aptible/cli/formatter/keyed_object.rb', line 9 def initialize(key) @key = key super() end |
Instance Attribute Details
#key ⇒ Object (readonly)
KeyedObject is rendered as an Object, but flags a given key as being more important. Renderers may opt to only render this key.
7 8 9 |
# File 'lib/aptible/cli/formatter/keyed_object.rb', line 7 def key @key end |