Class: Hoth::Transport::Base
- Inherits:
-
Object
- Object
- Hoth::Transport::Base
- Extended by:
- Forwardable
- Defined in:
- lib/hoth/transport/base.rb
Instance Attribute Summary collapse
-
#encoder ⇒ Object
readonly
Returns the value of attribute encoder.
Instance Method Summary collapse
-
#initialize(service_delegate, options = {}) ⇒ Base
constructor
A new instance of Base.
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, = {}) @service_delegate = service_delegate @encoder = [:encoder] || Encoding::NoOp end |
Instance Attribute Details
#encoder ⇒ Object (readonly)
Returns the value of attribute encoder.
8 9 10 |
# File 'lib/hoth/transport/base.rb', line 8 def encoder @encoder end |