Class: Larynx::ApiCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/larynx/command.rb

Instance Attribute Summary

Attributes inherited from Command

#command, #interrupted

Instance Method Summary collapse

Methods inherited from Command

#finalize, #initialize, #interruptable?, #interrupted?, #setup

Methods included from Callbacks

included

Constructor Details

This class inherits a constructor from Larynx::Command

Instance Method Details

#nameObject



52
53
54
# File 'lib/larynx/command.rb', line 52

def name
  "#{@command}#{" #{@params}" if @params}"
end

#to_sObject



56
57
58
59
60
# File 'lib/larynx/command.rb', line 56

def to_s
  cmd =  "api #{@command}"
  cmd << " #{@params}" if @params
  cmd << "\n\n"
end