Class: SIF::Infra::Message::SystemControlData

Inherits:
Object
  • Object
show all
Defined in:
lib/sif/infra/messages/system_control_data.rb

Instance Method Summary collapse

Instance Method Details

#dataObject



21
22
23
# File 'lib/sif/infra/messages/system_control_data.rb', line 21

def data
  get_message || ping || sleep || wake
end

#data=(assign) ⇒ Object



25
26
27
28
29
30
31
32
33
34
# File 'lib/sif/infra/messages/system_control_data.rb', line 25

def data=(assign)
  case assign
  when GetMessage    then self.get_message = assign
  when GetZoneStatus then self.get_zone_status = assign
  when GetAgentACL   then self.get_agent_acl = assign
  when Ping          then self.ping = assign
  when Sleep         then self.sleep = assign
  when Wakeup        then self.wake = assign
  end
end