Class: Larynx::ApiCommand
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
#finalize, #initialize, #interruptable?, #interrupted?, #setup
Methods included from Callbacks
Constructor Details
This class inherits a constructor from Larynx::Command
Instance Method Details
#name ⇒ Object
52 53 54 |
# File 'lib/larynx/command.rb', line 52 def name "#{@command}#{" #{@params}" if @params}" end |
#to_s ⇒ Object
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 |