Class: Types::TimelogType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::TimelogType
- Defined in:
- app/graphql/types/timelog_type.rb
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#issue ⇒ Object
54 55 56 |
# File 'app/graphql/types/timelog_type.rb', line 54 def issue Gitlab::Graphql::Loaders::BatchModelLoader.new(Issue, object.issue_id).find end |
#spent_at ⇒ Object
58 59 60 |
# File 'app/graphql/types/timelog_type.rb', line 58 def spent_at object.spent_at || object.created_at end |