Class: Funicular::Cable::Subscription

Inherits:
Object
  • Object
show all
Defined in:
sig/cable.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSubscription

Returns a new instance of Subscription.

Parameters:

  • consumer (Consumer)
  • identifier (String)
  • params (Hash[Symbol, untyped])


52
# File 'sig/cable.rbs', line 52

def initialize: (Consumer consumer, String identifier, Hash[Symbol, untyped] params) ?{ (untyped message) -> void } -> void

Instance Attribute Details

#consumerConsumer (readonly)

Returns the value of attribute consumer.

Returns:



48
49
50
# File 'sig/cable.rbs', line 48

def consumer
  @consumer
end

#identifierString (readonly)

Returns the value of attribute identifier.

Returns:

  • (String)


49
50
51
# File 'sig/cable.rbs', line 49

def identifier
  @identifier
end

#paramsHash[Symbol, untyped] (readonly)

Returns the value of attribute params.

Returns:

  • (Hash[Symbol, untyped])


50
51
52
# File 'sig/cable.rbs', line 50

def params
  @params
end

Instance Method Details

#notify_connectedvoid

This method returns an undefined value.



59
# File 'sig/cable.rbs', line 59

def notify_connected: () -> void

#notify_receivedvoid

This method returns an undefined value.

Parameters:

  • message (Object)


61
# File 'sig/cable.rbs', line 61

def notify_received: (untyped message) -> void

#notify_rejectedvoid

This method returns an undefined value.



60
# File 'sig/cable.rbs', line 60

def notify_rejected: () -> void

#on_connected { ... } ⇒ void

This method returns an undefined value.

Yields:

Yield Returns:

  • (void)


56
# File 'sig/cable.rbs', line 56

def on_connected: () { () -> void } -> void

#on_disconnected { ... } ⇒ void

This method returns an undefined value.

Yields:

Yield Returns:

  • (void)


57
# File 'sig/cable.rbs', line 57

def on_disconnected: () { () -> void } -> void

#on_rejected { ... } ⇒ void

This method returns an undefined value.

Yields:

Yield Returns:

  • (void)


58
# File 'sig/cable.rbs', line 58

def on_rejected: () { () -> void } -> void

#performvoid

This method returns an undefined value.

Parameters:

  • action (String)
  • data (Hash[Symbol, untyped])


55
# File 'sig/cable.rbs', line 55

def perform: (String action, ?Hash[Symbol, untyped] data) -> void

#subscribevoid

This method returns an undefined value.



53
# File 'sig/cable.rbs', line 53

def subscribe: () -> void

#unsubscribevoid

This method returns an undefined value.



54
# File 'sig/cable.rbs', line 54

def unsubscribe: () -> void