Class: Lita::Handlers::JenkinsClient::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/handlers/jenkins_client/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, matcher:, help:, usage: nil) ⇒ Command

Returns a new instance of Command.



4
5
6
7
# File 'lib/lita/handlers/jenkins_client/command.rb', line 4

def initialize(name: , matcher: , help: , usage: nil)
  @name, @matcher, @help = name, matcher, help
  @usage = usage ? usage : name
end

Instance Attribute Details

#helpObject (readonly)

Returns the value of attribute help.



3
4
5
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3

def help
  @help
end

#matcherObject (readonly)

Returns the value of attribute matcher.



3
4
5
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3

def matcher
  @matcher
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3

def name
  @name
end

#usageObject (readonly)

Returns the value of attribute usage.



3
4
5
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3

def usage
  @usage
end