Class: FSR::App::Set

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

Overview

Instance Method Summary collapse

Methods inherited from Application

#app_name, #raw, #to_s

Constructor Details

#initialize(key, value) ⇒ Set

Returns a new instance of Set.



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

def initialize(key, value)
  @key = key
  @value = value
end

Instance Method Details

#argumentsObject



11
12
13
# File 'lib/fsr/app/set.rb', line 11

def arguments
  [@key, @value]
end

#sendmsgObject



15
16
17
# File 'lib/fsr/app/set.rb', line 15

def sendmsg
  "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments.join("=")] 
end