Module: GraphQL::Schema::Member::HasDeprecationReason::ClassMethods Private

Defined in:
lib/graphql/schema/member/has_deprecation_reason.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#deprecation_reason(new_reason = NOT_CONFIGURED) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


28
29
30
31
32
33
34
# File 'lib/graphql/schema/member/has_deprecation_reason.rb', line 28

def deprecation_reason(new_reason = NOT_CONFIGURED)
  if NOT_CONFIGURED.equal?(new_reason)
    super()
  else
    self.deprecation_reason = new_reason
  end
end