Class: Citrus::Components::Channel
- Defined in:
- lib/citrus/components/channel.rb
Overview
Channel
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(app, args = {}) ⇒ Channel
constructor
Initialize the component.
Constructor Details
#initialize(app, args = {}) ⇒ Channel
Initialize the component
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
#service ⇒ Object (readonly)
Returns the value of attribute service.
19 20 21 |
# File 'lib/citrus/components/channel.rb', line 19 def service @service end |