Class: Types::Projects::ForkDetailsType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Projects::ForkDetailsType
show all
- Defined in:
- app/graphql/types/projects/fork_details_type.rb
Overview
rubocop: disable Graphql/AuthorizeTypes
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#ahead ⇒ Object
30
31
32
|
# File 'app/graphql/types/projects/fork_details_type.rb', line 30
def ahead
counts[:ahead]
end
|
#behind ⇒ Object
34
35
36
|
# File 'app/graphql/types/projects/fork_details_type.rb', line 34
def behind
counts[:behind]
end
|
#counts ⇒ Object
38
39
40
|
# File 'app/graphql/types/projects/fork_details_type.rb', line 38
def counts
@counts ||= object.counts
end
|