Class: Moleculer::Service::Remote

Inherits:
Base
  • Object
show all
Defined in:
lib/moleculer/service/remote.rb

Overview

Represents a remote service

Class Method Summary collapse

Methods inherited from Base

action, #actions, actions, #broker, event, events, #events, full_name, #initialize, to_h, version

Constructor Details

This class inherits a constructor from Moleculer::Service::Base

Class Method Details

.node(n = nil) ⇒ Object



22
23
24
25
# File 'lib/moleculer/service/remote.rb', line 22

def node(n = nil)
  @node = n if n
  @node
end

.service_name(name = nil) ⇒ Object



27
28
29
30
31
# File 'lib/moleculer/service/remote.rb', line 27

def service_name(name = nil)
  @service_name = name if name

  @service_name
end