Module: OAuth2::FilteredAttributes::ClassMethods
- Defined in:
- lib/oauth2/filtered_attributes.rb
Overview
Class-level helpers for configuring filtered attributes.
Instance Method Summary collapse
-
#filtered_attribute_names ⇒ Array<Symbol>
The configured attribute names to filter.
-
#filtered_attributes(*attributes) ⇒ void
Declare attributes that should be redacted in inspect output.
Instance Method Details
#filtered_attribute_names ⇒ Array<Symbol>
The configured attribute names to filter.
30 31 32 |
# File 'lib/oauth2/filtered_attributes.rb', line 30 def filtered_attribute_names @filtered_attribute_names || [] end |
#filtered_attributes(*attributes) ⇒ void
This method returns an undefined value.
Declare attributes that should be redacted in inspect output.
23 24 25 |
# File 'lib/oauth2/filtered_attributes.rb', line 23 def filtered_attributes(*attributes) @filtered_attribute_names = attributes.map(&:to_sym) end |