Class: Fields::Reference
- Inherits:
-
Field
- Object
- Field
- Fields::Reference
- Defined in:
- lib/hammer_cli_foreman/output/fields.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Reference
constructor
A new instance of Reference.
- #initialize_options ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Reference
Returns a new instance of Reference.
6 7 8 9 |
# File 'lib/hammer_cli_foreman/output/fields.rb', line 6 def initialize(={}) super end |
Instance Method Details
#initialize_options ⇒ Object
11 12 13 14 15 16 |
# File 'lib/hammer_cli_foreman/output/fields.rb', line 11 def @options[:details] ||= [] @options[:details] = [@options[:details]] unless @options[:details].is_a?(Array) @options[:details] = [id_detail] + @options[:details] @options[:display_field_key] ||= @options[:name_key] || :name end |