Class: OmniAgent::Streaming::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/omni_agent/streaming/proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(agent) ⇒ Proxy

Returns a new instance of Proxy.



4
5
6
# File 'lib/omni_agent/streaming/proxy.rb', line 4

def initialize(agent)
  @agent = agent
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, **kwargs, &block) ⇒ Object



8
9
10
# File 'lib/omni_agent/streaming/proxy.rb', line 8

def method_missing(name, *args, **kwargs, &block)
  @agent.public_send(name, *args, **kwargs, &block)
end

Instance Method Details

#respond_to_missing?(name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/omni_agent/streaming/proxy.rb', line 12

def respond_to_missing?(name, include_private = false)
  @agent.respond_to?(name, include_private) || super
end