Class: ThriftHelpers::Connection::Base
- Inherits:
-
Object
- Object
- ThriftHelpers::Connection::Base
- Defined in:
- lib/thrift_client/connection/base.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
Returns the value of attribute server.
-
#transport ⇒ Object
Returns the value of attribute transport.
Instance Method Summary collapse
- #close ⇒ Object
- #connect! ⇒ Object
-
#initialize(transport, transport_wrapper, server, timeout) ⇒ Base
constructor
A new instance of Base.
- #open? ⇒ Boolean
Constructor Details
#initialize(transport, transport_wrapper, server, timeout) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/thrift_client/connection/base.rb', line 6 def initialize(transport, transport_wrapper, server, timeout) @transport = transport @transport_wrapper = transport_wrapper @server = server @timeout = timeout end |
Instance Attribute Details
#server ⇒ Object
Returns the value of attribute server.
4 5 6 |
# File 'lib/thrift_client/connection/base.rb', line 4 def server @server end |
#transport ⇒ Object
Returns the value of attribute transport.
4 5 6 |
# File 'lib/thrift_client/connection/base.rb', line 4 def transport @transport end |
Instance Method Details
#close ⇒ Object
21 22 |
# File 'lib/thrift_client/connection/base.rb', line 21 def close end |
#connect! ⇒ Object
13 14 15 |
# File 'lib/thrift_client/connection/base.rb', line 13 def connect! raise NotImplementedError end |
#open? ⇒ Boolean
17 18 19 |
# File 'lib/thrift_client/connection/base.rb', line 17 def open? @transport.open? end |