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, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#ahead ⇒ Object
32
33
34
|
# File 'app/graphql/types/projects/fork_details_type.rb', line 32
def ahead
counts[:ahead]
end
|
#behind ⇒ Object
36
37
38
|
# File 'app/graphql/types/projects/fork_details_type.rb', line 36
def behind
counts[:behind]
end
|
#counts ⇒ Object
40
41
42
|
# File 'app/graphql/types/projects/fork_details_type.rb', line 40
def counts
@counts ||= object.counts
end
|