Class: FluQ::DSL::Feed
Overview
Feed-level DSL configuration
Instance Attribute Summary collapse
-
#handlers ⇒ Object
readonly
Returns the value of attribute handlers.
-
#inputs ⇒ Object
readonly
Returns the value of attribute inputs.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #handler(*type, &block) ⇒ Object
-
#initialize(name, &block) ⇒ Feed
constructor
A new instance of Feed.
- #input(*type, &block) ⇒ Object
Constructor Details
#initialize(name, &block) ⇒ Feed
Returns a new instance of Feed.
5 6 7 8 9 10 |
# File 'lib/fluq/dsl/feed.rb', line 5 def initialize(name, &block) @name = name @inputs = [] @handlers = [] instance_eval(&block) end |
Instance Attribute Details
#handlers ⇒ Object (readonly)
Returns the value of attribute handlers.
3 4 5 |
# File 'lib/fluq/dsl/feed.rb', line 3 def handlers @handlers end |
#inputs ⇒ Object (readonly)
Returns the value of attribute inputs.
3 4 5 |
# File 'lib/fluq/dsl/feed.rb', line 3 def inputs @inputs end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/fluq/dsl/feed.rb', line 3 def name @name end |