Class: ResponseMate::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/response_mate/commands/base.rb

Overview

The command all other commands inherit from to DRY common functionality

Direct Known Subclasses

Export, Inspect, List, Record

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @args = args
  @options = options.dup.symbolize_keys
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



3
4
5
# File 'lib/response_mate/commands/base.rb', line 3

def args
  @args
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/response_mate/commands/base.rb', line 3

def options
  @options
end