Class: FSR::App::Hangup

Inherits:
Application show all
Defined in:
lib/fsr/app/hangup.rb

Overview

Instance Method Summary collapse

Methods inherited from Application

#app_name, #raw, #to_s

Constructor Details

#initialize(data = nil) ⇒ Hangup

Returns a new instance of Hangup.



6
7
8
# File 'lib/fsr/app/hangup.rb', line 6

def initialize(data = nil)
  @data = data
end

Instance Method Details

#argumentsObject



10
11
12
# File 'lib/fsr/app/hangup.rb', line 10

def arguments
  @data
end

#sendmsgObject



14
15
16
# File 'lib/fsr/app/hangup.rb', line 14

def sendmsg
  "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\n\n" % [app_name, arguments]
end