Class: Rapidomize::Transports::BaseTransport

Inherits:
Object
  • Object
show all
Defined in:
lib/rapidomize/transport/base_transport.rb

Overview

Interface for Transport classes to implement

Direct Known Subclasses

CommonHTTP

Instance Method Summary collapse

Instance Method Details

#deliver(_message) ⇒ Object

Method to invoke to send a message to the URI of the message

Parameters:

  • _message (Message)

    a message object with a URI, IGNORED on BaseTransport

Raises:

  • NotImplementedError on BaseTransport objects



10
11
12
# File 'lib/rapidomize/transport/base_transport.rb', line 10

def deliver(_message)
  raise NotImplementedError
end

#receiveObject

Method to invoke when a message is received from the cloud

Raises:

  • NotImplementedError on BaseTransport objects



16
17
18
# File 'lib/rapidomize/transport/base_transport.rb', line 16

def receive
  raise NotImplementedError
end