Class: Gitlab::Triage::Network

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/triage/network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#graphqlObject

Returns the value of attribute graphql

Returns:

  • (Object)

    the current value of graphql



6
7
8
# File 'lib/gitlab/triage/network.rb', line 6

def graphql
  @graphql
end

#restapiObject

Returns the value of attribute restapi

Returns:

  • (Object)

    the current value of restapi



6
7
8
# File 'lib/gitlab/triage/network.rb', line 6

def restapi
  @restapi
end

Instance Method Details

#delete_apiObject



34
35
36
# File 'lib/gitlab/triage/network.rb', line 34

def delete_api(...)
  restapi.delete_api(...)
end

#graphql_optionsObject



26
27
28
# File 'lib/gitlab/triage/network.rb', line 26

def graphql_options
  graphql.options
end

#post_apiObject



30
31
32
# File 'lib/gitlab/triage/network.rb', line 30

def post_api(...)
  restapi.post_api(...)
end

#query_api(url) ⇒ Object



7
8
9
# File 'lib/gitlab/triage/network.rb', line 7

def query_api(url)
  restapi.query_api(url)
end

#query_api_cached(url) ⇒ Object



15
16
17
# File 'lib/gitlab/triage/network.rb', line 15

def query_api_cached(url)
  restapi.query_api_cached(url)
end

#query_graphqlObject



11
12
13
# File 'lib/gitlab/triage/network.rb', line 11

def query_graphql(...)
  graphql.query(...)
end

#restapi_optionsObject Also known as: options



19
20
21
# File 'lib/gitlab/triage/network.rb', line 19

def restapi_options
  restapi.options
end