Module: Decidim::Core::AuthorInterface

Includes:
Api::Types::BaseInterface
Defined in:
lib/decidim/api/interfaces/author_interface.rb

Overview

This interface represents an author who owns a resource.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.resolve_type(obj, _ctx) ⇒ Object



28
29
30
# File 'lib/decidim/api/interfaces/author_interface.rb', line 28

def self.resolve_type(obj, _ctx)
  return Decidim::Core::UserType if obj.is_a? Decidim::UserBaseEntity
end

Instance Method Details

#organization_nameObject



24
25
26
# File 'lib/decidim/api/interfaces/author_interface.rb', line 24

def organization_name
  object.organization.name
end