Class: Types::AccessLevels::UserType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::AccessLevels::UserType
show all
- Defined in:
- app/graphql/types/access_levels/user_type.rb
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#avatar_url ⇒ Object
56
57
58
|
# File 'app/graphql/types/access_levels/user_type.rb', line 56
def avatar_url
object.avatar_url(only_path: false)
end
|
#redacted_name ⇒ Object
52
53
54
|
# File 'app/graphql/types/access_levels/user_type.rb', line 52
def redacted_name
object.redacted_name(context[:current_user])
end
|