class Pione::System::PioneObject

PioneObject is a base class for PIONE system.

Public Instance Methods

check_argument_type(val, klass) click to toggle source

Checks argument type. Raises a type error if the value is not kind of the type. @param [Object] val

check target

@param [Class] klass

expected type

@return [void]

# File lib/pione/system/object.rb, line 12
def check_argument_type(val, klass)
  raise TypeError.new(val) unless val.kind_of?(klass)
end
finalize() click to toggle source

Finalizes this object. @return [void]

# File lib/pione/system/object.rb, line 30
def finalize
  # do nothing
end
ping() click to toggle source

Returns true.

# File lib/pione/system/object.rb, line 17
def ping
  true
end
uuid() click to toggle source

Returns this object’s uuid. @return [String]

UUID string
# File lib/pione/system/object.rb, line 24
def uuid
  @__uuid__ ||= Util::UUID.generate
end