Class: Celluloid::LinkingResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/celluloid/system_events.rb

Overview

Response to a link request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actor, type) ⇒ LinkingResponse

Returns a new instance of LinkingResponse.

Raises:

  • (ArgumentError)

28
29
30
31
# File 'lib/celluloid/system_events.rb', line 28

def initialize(actor, type)
  @actor, @type = actor, type.to_sym
  raise ArgumentError, "type must be link or unlink" unless [:link, :unlink].include?(@type)
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor


26
27
28
# File 'lib/celluloid/system_events.rb', line 26

def actor
  @actor
end

#typeObject (readonly)

Returns the value of attribute type


26
27
28
# File 'lib/celluloid/system_events.rb', line 26

def type
  @type
end