class Noam::Message::Playable

Public Class Methods

new(host_id, event, value) click to toggle source
# File lib/noam_lemma/message/playable.rb, line 4
def initialize(host_id, event, value)
  @host_id = host_id
  @event = event
  @value = value
end

Public Instance Methods

noam_encode() click to toggle source
# File lib/noam_lemma/message/playable.rb, line 10
def noam_encode
  j = ['event', @host_id, @event, @value].to_json
  Noam::Message.encode_length(j.length) + j
end