Class: AbstractThriftClient::Server
- Inherits:
-
Object
- Object
- AbstractThriftClient::Server
- Defined in:
- lib/thrift_client/abstract_thrift_client.rb
Instance Attribute Summary (collapse)
-
- (Object) connection_string
(also: #to_s)
readonly
Returns the value of attribute connection_string.
-
- (Object) marked_down_at
readonly
Returns the value of attribute marked_down_at.
Instance Method Summary (collapse)
-
- (Server) initialize(connection_string)
constructor
A new instance of Server.
- - (Object) mark_down!
Constructor Details
- (Server) initialize(connection_string)
A new instance of Server
6 7 8 |
# File 'lib/thrift_client/abstract_thrift_client.rb', line 6 def initialize(connection_string) @connection_string = connection_string end |
Instance Attribute Details
- (Object) connection_string (readonly) Also known as: to_s
Returns the value of attribute connection_string
4 5 6 |
# File 'lib/thrift_client/abstract_thrift_client.rb', line 4 def connection_string @connection_string end |
- (Object) marked_down_at (readonly)
Returns the value of attribute marked_down_at
4 5 6 |
# File 'lib/thrift_client/abstract_thrift_client.rb', line 4 def marked_down_at @marked_down_at end |
Instance Method Details
- (Object) mark_down!
11 12 13 |
# File 'lib/thrift_client/abstract_thrift_client.rb', line 11 def mark_down! @marked_down_at = Time.now end |