Class: ResponseMate::Commands::Base
- Inherits:
-
Object
- Object
- ResponseMate::Commands::Base
- Defined in:
- lib/response_mate/commands/base.rb
Overview
The command all other commands inherit from to DRY common functionality
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args, options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args, options) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/response_mate/commands/base.rb', line 5 def initialize(args, ) @args = args @options = .dup.symbolize_keys end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/response_mate/commands/base.rb', line 3 def args @args end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/response_mate/commands/base.rb', line 3 def @options end |