Class: ProjectSimulator::WebhookAction

Inherits:
Object
  • Object
show all
Defined in:
lib/projectsimulator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject

Returns the value of attribute url.



350
351
352
# File 'lib/projectsimulator.rb', line 350

def url
  @url
end

Instance Method Details

#callObject



357
358
359
# File 'lib/projectsimulator.rb', line 357

def call()
  "webhook: %s" % @url
end