Class: Concurrent::ErlangActor::Down — Concurrent Ruby

# Class: Concurrent::ErlangActor::Down

Inherits:
  Object
  - Object
  - Concurrent::ErlangActor::Down
  show all

Defined in:
  lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

## Overview

A message send by a monitored actor when terminated.

## Instance Attribute Summary collapse

- #from ⇒ Pid readonly
- #info ⇒ Object readonly
- #reference ⇒ Reference readonly

## Instance Method Summary collapse

- #==(o) ⇒ true, false (also: #eql?)
- #hash ⇒ Integer
- #to_ary ⇒ ::Array(Pis, Reference, Object)

## Instance Attribute Details

### #from ⇒ `Pid` (readonly)

Returns:

- (`Pid`)

    1465
    1466
    1467
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1465

    def from
      @from
    end

### #info ⇒ `Object` (readonly)

Returns:

- (`Object`)

    1469
    1470
    1471
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1469

    def info
      @info
    end

### #reference ⇒ `Reference` (readonly)

Returns:

- (`Reference`)

    1467
    1468
    1469
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1467

    def reference
      @reference
    end

## Instance Method Details

### #==(o) ⇒ `true`, `false` Also known as: eql?

Returns:

- (`true`, `false`)

    1484
    1485
    1486
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1484

    def ==(o)
      o.class == self.class && o.from == @from && o.reference == @reference && o.info == @info
    end

### #hash ⇒ `Integer`

Returns:

- (`Integer`)

    1491
    1492
    1493
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1491

    def hash
      to_ary.hash
    end

### #to_ary ⇒ `::Array(Pis, Reference, Object)`

Returns:

- (`::Array(Pis, Reference, Object)`)

    1479
    1480
    1481
    # File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1479

    def to_ary
      [@from, @reference, @info]
    end