Method: ChefAPI::Schema#ignore

Defined in:
lib/chef-api/schema.rb

#ignore(*keys) ⇒ Object

Ignore an attribute. This is handy if you know there’s an attribute that the remote server will return, but you don’t want that information exposed to the user (or the data is sensitive).

Parameters:

  • keys (Array<Symbol>)

    the list of attributes to ignore



121
122
123
124
125
# File 'lib/chef-api/schema.rb', line 121

def ignore(*keys)
  keys.each do |key|
    @ignored_attributes[key.to_sym] = true
  end
end