Method: Vici::Message#initialize

Defined in:
lib/vici.rb

#initialize(data = "") ⇒ Message

Returns a new instance of Message.



89
90
91
92
93
94
95
96
97
# File 'lib/vici.rb', line 89

def initialize(data = "")
  if data.nil?
    @root = {}
  elsif data.is_a?(Hash)
    @root = data
  else
    @encoded = data
  end
end