Class: Gitlab::Graphql::ConnectionRedaction::RedactionState
- Inherits:
-
Object
- Object
- Gitlab::Graphql::ConnectionRedaction::RedactionState
- Defined in:
- lib/gitlab/graphql/connection_redaction.rb
Instance Attribute Summary collapse
-
#redacted_nodes ⇒ Object
readonly
Returns the value of attribute redacted_nodes.
-
#redactor ⇒ Object
Returns the value of attribute redactor.
Instance Method Summary collapse
Instance Attribute Details
#redacted_nodes ⇒ Object (readonly)
Returns the value of attribute redacted_nodes.
8 9 10 |
# File 'lib/gitlab/graphql/connection_redaction.rb', line 8 def redacted_nodes @redacted_nodes end |
#redactor ⇒ Object
Returns the value of attribute redactor.
7 8 9 |
# File 'lib/gitlab/graphql/connection_redaction.rb', line 7 def redactor @redactor end |
Instance Method Details
#redacted(&block) ⇒ Object
15 16 17 |
# File 'lib/gitlab/graphql/connection_redaction.rb', line 15 def redacted(&block) @redacted_nodes ||= redactor.present? ? redactor.redact(yield) : yield end |