Class: Fields::LabeledField

Inherits:
Field
  • Object
show all
Defined in:
lib/hammer_cli/output/fields.rb

Direct Known Subclasses

DataField, Label

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Field

#get_value

Constructor Details

#initialize(options = {}) ⇒ LabeledField



19
20
21
# File 'lib/hammer_cli/output/fields.rb', line 19

def initialize(options={})
  @label = options[:label]
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



17
18
19
# File 'lib/hammer_cli/output/fields.rb', line 17

def label
  @label
end