class Response

This class is for containing responses from the Command tree

Attributes

data[RW]
message[RW]
type[R]

Public Class Methods

new(val=nil, data_class=nil) click to toggle source
# File libs/zabcon_globals.rb, line 49
def initialize(val=nil, data_class=nil)
  data=val
  @type=nil
  @message=nil
end

Public Instance Methods

type=(type) click to toggle source
# File libs/zabcon_globals.rb, line 55
def type=(type)
  raise InvalidType.new("Response.type must be a symbol") if type.class!=Symbol
  @type=type
end