Module: BulkImports::Projects::Graphql::Queryable
- Included in:
- GetProjectQuery, GetRepositoryQuery, GetSnippetRepositoryQuery
- Defined in:
- lib/bulk_imports/projects/graphql/queryable.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #base_path ⇒ Object
- #data_path ⇒ Object
- #initialize(context:) ⇒ Object
- #page_info_path ⇒ Object
- #variables ⇒ Object
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
7 8 9 |
# File 'lib/bulk_imports/projects/graphql/queryable.rb', line 7 def context @context end |
Instance Method Details
#base_path ⇒ Object
17 18 19 |
# File 'lib/bulk_imports/projects/graphql/queryable.rb', line 17 def base_path %w[data project] end |
#data_path ⇒ Object
21 22 23 |
# File 'lib/bulk_imports/projects/graphql/queryable.rb', line 21 def data_path base_path end |
#initialize(context:) ⇒ Object
9 10 11 |
# File 'lib/bulk_imports/projects/graphql/queryable.rb', line 9 def initialize(context:) @context = context end |
#page_info_path ⇒ Object
25 26 27 |
# File 'lib/bulk_imports/projects/graphql/queryable.rb', line 25 def page_info_path base_path << 'page_info' end |
#variables ⇒ Object
13 14 15 |
# File 'lib/bulk_imports/projects/graphql/queryable.rb', line 13 def variables { full_path: context.entity.source_full_path } end |