Class: Doctor::Dto::TelnetResultDto

Inherits:
Object
  • Object
show all
Defined in:
app/view/doctor/dto/telnet_result_dto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ TelnetResultDto

Returns a new instance of TelnetResultDto.



6
7
8
9
10
11
12
13
14
15
# File 'app/view/doctor/dto/telnet_result_dto.rb', line 6

def initialize(data)
  @name = data[:name]
  @host = data[:host]
  @port = data[:port]
  @timeout = data[:timeout]
  @wait_time = data[:wait_time]

  @status = data[:status]
  @error_message = data[:error_message] unless data[:error_message].nil?
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'app/view/doctor/dto/telnet_result_dto.rb', line 4

def status
  @status
end