Class: Types::Ci::RunnerWebUrlEdge

Inherits:
BaseEdge
  • Object
show all
Defined in:
app/graphql/types/ci/runner_web_url_edge.rb

Overview

rubocop: disable Graphql/AuthorizeTypes

Instance Method Summary collapse

Constructor Details

#initialize(node, connection) ⇒ RunnerWebUrlEdge

Returns a new instance of RunnerWebUrlEdge.



14
15
16
17
18
# File 'app/graphql/types/ci/runner_web_url_edge.rb', line 14

def initialize(node, connection)
  super

  @runner = node.node
end

Instance Method Details

#edit_url(parent:) ⇒ Object

here parent is a Keyset::Connection



21
22
23
# File 'app/graphql/types/ci/runner_web_url_edge.rb', line 21

def edit_url(parent:)
  runner_url(owner: parent.parent, url_type: :edit_url)
end

#web_url(parent:) ⇒ Object



25
26
27
# File 'app/graphql/types/ci/runner_web_url_edge.rb', line 25

def web_url(parent:)
  runner_url(owner: parent.parent, url_type: :default)
end