Class: Types::Ci::RunnerWebUrlEdge

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

Instance Method Summary collapse

Constructor Details

#initialize(node, connection) ⇒ RunnerWebUrlEdge

Returns a new instance of RunnerWebUrlEdge.



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

def initialize(node, connection)
  super

  @runner = node.node
end

Instance Method Details

#edit_url(parent:) ⇒ Object

here parent is a Keyset::Connection



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

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

#web_url(parent:) ⇒ Object



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

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