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

#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_stringObject (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_atObject (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