Class: Hoth::Transport::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/hoth/transport/base.rb

Direct Known Subclasses

Beanstalkd, Http

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_delegate, options = {}) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/hoth/transport/base.rb', line 12

def initialize(service_delegate, options = {})
  @service_delegate = service_delegate
  @encoder = options[:encoder] || Encoding::NoOp
end

Instance Attribute Details

#encoderObject (readonly)

Returns the value of attribute encoder.



8
9
10
# File 'lib/hoth/transport/base.rb', line 8

def encoder
  @encoder
end