Class: Hoze::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/hoze/interface/source.rb

Direct Known Subclasses

PubSubSource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



5
6
7
# File 'lib/hoze/interface/source.rb', line 5

def channel
  @channel
end

#engineObject (readonly)

Returns the value of attribute engine.



5
6
7
# File 'lib/hoze/interface/source.rb', line 5

def engine
  @engine
end

#keyObject (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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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