Class: Lita::Handlers::JenkinsClient::Command
- Inherits:
-
Object
- Object
- Lita::Handlers::JenkinsClient::Command
- Defined in:
- lib/lita/handlers/jenkins_client/command.rb
Instance Attribute Summary collapse
-
#help ⇒ Object
readonly
Returns the value of attribute help.
-
#matcher ⇒ Object
readonly
Returns the value of attribute matcher.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(name:, matcher:, help:, usage: nil) ⇒ Command
constructor
A new instance of Command.
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
#help ⇒ Object (readonly)
Returns the value of attribute help.
3 4 5 |
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3 def help @help end |
#matcher ⇒ Object (readonly)
Returns the value of attribute matcher.
3 4 5 |
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3 def matcher @matcher end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3 def name @name end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
3 4 5 |
# File 'lib/lita/handlers/jenkins_client/command.rb', line 3 def usage @usage end |