Class: Pione::System::PioneObject

Inherits:
Object
  • Object
show all
Defined in:
lib/pione/system/object.rb

Overview

PioneObject is a base class for PIONE system.

Instance Method Summary collapse

Instance Method Details

#check_argument_type(val, klass) ⇒ void

This method returns an undefined value.

Checks argument type. Raises a type error if the value is not kind of the type.

Parameters:

  • val (Object)

    check target

  • klass (Class)

    expected type

Raises:

  • (TypeError)


12
13
14
# File 'lib/pione/system/object.rb', line 12

def check_argument_type(val, klass)
  raise TypeError.new(val) unless val.kind_of?(klass)
end

#finalizevoid

This method returns an undefined value.

Finalizes this object.



30
31
32
# File 'lib/pione/system/object.rb', line 30

def finalize
  # do nothing
end

#pingObject

Returns true.



17
18
19
# File 'lib/pione/system/object.rb', line 17

def ping
  true
end

#uuidString

Returns this object's uuid.

Returns:

  • (String)

    UUID string



24
25
26
# File 'lib/pione/system/object.rb', line 24

def uuid
  @__uuid__ ||= Util::UUID.generate
end