Class: HttpStub::Server::Scenario::Links

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/server/scenario/links.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Links

Returns a new instance of Links.


7
8
9
# File 'lib/http_stub/server/scenario/links.rb', line 7

def initialize(name)
  @name = name
end

Instance Method Details

#activateObject


15
16
17
# File 'lib/http_stub/server/scenario/links.rb', line 15

def activate
  "/http_stub/scenarios/activate"
end

#detailObject


11
12
13
# File 'lib/http_stub/server/scenario/links.rb', line 11

def detail
  "/http_stub/scenarios?#{URI.encode_www_form(name: @name)}"
end