Class: AbstractThriftClient::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/thrift_client/abstract_thrift_client.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Server) initialize(connection_string)

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

- (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