Class: HttpStub::Server::Scenario::Trigger

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Trigger

Returns a new instance of Trigger.



9
10
11
12
# File 'lib/http_stub/server/scenario/trigger.rb', line 9

def initialize(name)
  @name  = name
  @links = HttpStub::Server::Scenario::Links.new(name)
end

Instance Attribute Details

Returns the value of attribute links.



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

def links
  @links
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end