Module: AssMaintainer::InfoBase::ServerIb::EnterpriseServers::ServerConnection

Included in:
Claster, ServerAgent
Defined in:
lib/ass_maintainer/info_base/server_ib/helpers.rb

Overview

Mixins for serever connection describers Claster ServerAgent

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#host_portObject (readonly)

Returns the value of attribute host_port.



7
8
9
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 7

def host_port
  @host_port
end

#passwordObject (readonly)

Returns the value of attribute password.



7
8
9
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 7

def password
  @password
end

#userObject (readonly)

Returns the value of attribute user.



7
8
9
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 7

def user
  @user
end

Instance Method Details

#initialize(host_port, user, password) ⇒ Object



8
9
10
11
12
13
# File 'lib/ass_maintainer/info_base/server_ib/helpers.rb', line 8

def initialize(host_port, user, password)
  fail ArgumentError, 'Host name require' if host_port.to_s.empty?
  @host_port = host_port.to_s
  @user = user
  @password = password
end