Class: ExcADG::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/excadg/request.rb

Overview

base class for messages between Ractors

Direct Known Subclasses

AddVertex, GetStateData, Update

Defined Under Namespace

Classes: AddVertex, GetStateData, Update

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRequest

Returns a new instance of Request.



12
13
14
# File 'lib/excadg/request.rb', line 12

def initialize
  @self = Ractor.current
end

Instance Attribute Details

#selfObject (readonly)

Returns the value of attribute self.



10
11
12
# File 'lib/excadg/request.rb', line 10

def self
  @self
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/excadg/request.rb', line 16

def to_s
  "#{self.class} from #{@self}"
end