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