Class: Citrus::Components::Channel

Inherits:
Component
  • Object
show all
Defined in:
lib/citrus/components/channel.rb

Overview

Channel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, args = {}) ⇒ Channel

Initialize the component

Parameters:

  • app (Object)
  • args (Hash) (defaults to: {})


25
26
27
28
29
30
# File 'lib/citrus/components/channel.rb', line 25

def initialize app, args={}
  @service = Common::Service::ChannelService.new app, args

  this = self
  @app.define_singleton_method :channel_service, proc{ this.service }
end

Instance Attribute Details

#serviceObject (readonly)

Returns the value of attribute service.



19
20
21
# File 'lib/citrus/components/channel.rb', line 19

def service
  @service
end