# File lib/hammer_cli/output/fields.rb, line 10 def initialize(options={}) @hide_blank = options[:hide_blank].nil? ? false : options[:hide_blank] @hide_missing = options[:hide_missing].nil? ? true : options[:hide_missing] @path = options[:path] || [] @label = options[:label] @options = options end
# File lib/hammer_cli/output/fields.rb, line 26 def display?(value) if value.is_a?(HammerCLI::Output::DataMissing) !hide_missing? elsif value.nil? !hide_blank? else true end end
# File lib/hammer_cli/output/fields.rb, line 18 def hide_blank? @hide_blank end
# File lib/hammer_cli/output/fields.rb, line 22 def hide_missing? @hide_missing end
# File lib/hammer_cli/output/fields.rb, line 36 def parameters @options end