Class: FSR::Cmd::API

Inherits:
Command show all
Defined in:
lib/fsr/cmd/api.rb

Constant Summary

Constants inherited from Command

DEFAULT_OPTIONS

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Command

#default_options

Constructor Details

- (API) initialize(cmd, *args)

A new instance of API



7
8
9
# File 'lib/fsr/cmd/api.rb', line 7

def initialize(cmd, *args)
  @cmd_name, @arguments = cmd, args
end

Instance Attribute Details

- (Object) arguments (readonly)

Returns the value of attribute arguments



5
6
7
# File 'lib/fsr/cmd/api.rb', line 5

def arguments
  @arguments
end

- (Object) cmd_name (readonly)

Returns the value of attribute cmd_name



5
6
7
# File 'lib/fsr/cmd/api.rb', line 5

def cmd_name
  @cmd_name
end