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



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

def graphql
  @graphql
end

#restapiObject

Returns the value of attribute restapi

Returns:

  • (Object)

    the current value of restapi



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

def restapi
  @restapi
end

Instance Method Details

#delete_apiObject



36
37
38
# File 'lib/gitlab/triage/network.rb', line 36

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

#graphql_optionsObject



28
29
30
# File 'lib/gitlab/triage/network.rb', line 28

def graphql_options
  graphql.options
end

#post_apiObject



32
33
34
# File 'lib/gitlab/triage/network.rb', line 32

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

#query_api(url) ⇒ Object



9
10
11
# File 'lib/gitlab/triage/network.rb', line 9

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

#query_api_cached(url) ⇒ Object



17
18
19
# File 'lib/gitlab/triage/network.rb', line 17

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

#query_graphqlObject



13
14
15
# File 'lib/gitlab/triage/network.rb', line 13

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

#restapi_optionsObject Also known as: options



21
22
23
# File 'lib/gitlab/triage/network.rb', line 21

def restapi_options
  restapi.options
end