Class: Aptible::CLI::Formatter::KeyedObject

Inherits:
Object
  • Object
show all
Defined in:
lib/aptible/cli/formatter/keyed_object.rb

Instance Attribute Summary collapse

Attributes inherited from Object

#children

Instance Method Summary collapse

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

#keyObject (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