Class: Types::WorkItems::Widgets::TimeTracking::TimelogType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::WorkItems::Widgets::TimeTracking::TimelogType
- Defined in:
- app/graphql/types/work_items/widgets/time_tracking/timelog_type.rb
Overview
rubocop:disable Graphql/AuthorizeTypes – we already authorize the work item itself
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#spent_at ⇒ Object
42 43 44 |
# File 'app/graphql/types/work_items/widgets/time_tracking/timelog_type.rb', line 42 def spent_at object.spent_at || object.created_at end |