Class: ProjectSimulator::WebhookAction
- Inherits:
-
Object
- Object
- ProjectSimulator::WebhookAction
- Defined in:
- lib/projectsimulator.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name) ⇒ WebhookAction
constructor
A new instance of WebhookAction.
Constructor Details
#initialize(name) ⇒ WebhookAction
Returns a new instance of WebhookAction.
352 353 354 355 |
# File 'lib/projectsimulator.rb', line 352 def initialize(name) @name = name @url = '127.0.0.1' end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
350 351 352 |
# File 'lib/projectsimulator.rb', line 350 def url @url end |
Instance Method Details
#call ⇒ Object
357 358 359 |
# File 'lib/projectsimulator.rb', line 357 def call() "webhook: %s" % @url end |