Class: ForemanHooks::Util::RablScope

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman_hooks/util.rb

Instance Method Summary collapse

Constructor Details

#initializeRablScope

Returns a new instance of RablScope.



79
80
81
82
83
# File 'lib/foreman_hooks/util.rb', line 79

def initialize
  # Used by api/v2/hosts/main.json.yaml to include parameter lists
  @all_parameters = true
  @parameters = true
end

Instance Method Details

#paramsObject



85
86
87
88
# File 'lib/foreman_hooks/util.rb', line 85

def params
  # Used by app/views/api/v2/common/show_hidden.json.rabl to show hidden parameter values (#17653)
  { 'show_hidden' => true, 'show_hidden_parameters' => true }
end