Class: Decidim::Core::UserType
- Inherits:
-
Api::Types::BaseObject
- Object
- Api::Types::BaseObject
- Decidim::Core::UserType
- Defined in:
- lib/decidim/api/types/user_type.rb
Overview
This type represents a User.
Instance Method Summary collapse
- #avatar_url ⇒ Object
- #badge ⇒ Object
- #deleted ⇒ Object
- #direct_messages_enabled ⇒ Object
- #groups ⇒ Object
- #nickname ⇒ Object
- #organization_name ⇒ Object
- #profile_path ⇒ Object
Instance Method Details
#avatar_url ⇒ Object
38 39 40 |
# File 'lib/decidim/api/types/user_type.rb', line 38 def avatar_url object.presenter.avatar_url(:thumb) end |
#badge ⇒ Object
58 59 60 |
# File 'lib/decidim/api/types/user_type.rb', line 58 def badge object.presenter.badge end |
#deleted ⇒ Object
54 55 56 |
# File 'lib/decidim/api/types/user_type.rb', line 54 def deleted object.presenter.deleted? end |
#direct_messages_enabled ⇒ Object
46 47 48 |
# File 'lib/decidim/api/types/user_type.rb', line 46 def object.presenter.(context.to_h) end |
#groups ⇒ Object
62 63 64 |
# File 'lib/decidim/api/types/user_type.rb', line 62 def groups object.accepted_user_groups end |
#nickname ⇒ Object
34 35 36 |
# File 'lib/decidim/api/types/user_type.rb', line 34 def nickname object.presenter.nickname end |
#organization_name ⇒ Object
50 51 52 |
# File 'lib/decidim/api/types/user_type.rb', line 50 def organization_name object.organization.name end |
#profile_path ⇒ Object
42 43 44 |
# File 'lib/decidim/api/types/user_type.rb', line 42 def profile_path object.presenter.profile_path end |