class ForemanHooks::Util::RablScope

Public Class Methods

new() click to toggle source
# File lib/foreman_hooks/util.rb, line 71
def initialize
  # Used by api/v2/hosts/main.json.yaml to include parameter lists
  @all_parameters = true
  @parameters = true
end

Public Instance Methods

params() click to toggle source
# File lib/foreman_hooks/util.rb, line 77
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