Class: Hoze::Source
- Inherits:
-
Object
- Object
- Hoze::Source
- Defined in:
- lib/hoze/interface/source.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
5 6 7 |
# File 'lib/hoze/interface/source.rb', line 5 def channel @channel end |
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
5 6 7 |
# File 'lib/hoze/interface/source.rb', line 5 def engine @engine end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/hoze/interface/source.rb', line 5 def key @key end |
Instance Method Details
#listen(&block) ⇒ Object
7 8 9 |
# File 'lib/hoze/interface/source.rb', line 7 def listen &block raise NotImplementedError.new("This source implementation doesn't support listen method.") end |
#push(payload, metadata) ⇒ Object
11 12 13 |
# File 'lib/hoze/interface/source.rb', line 11 def push payload, raise NotImplementedError.new("This source implementation doesn't support push method.") end |