Class: ServerBroadcastReport

Inherits:
Object
  • Object
show all
Defined in:
lib/api-tester/modules/server_information.rb

Overview

Report used by module

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server_info, server_key) ⇒ ServerBroadcastReport

Returns a new instance of ServerBroadcastReport.



31
32
33
34
# File 'lib/api-tester/modules/server_information.rb', line 31

def initialize(server_info, server_key)
  self.server_info = server_info
  self.server_key = server_key
end

Instance Attribute Details

#server_infoObject

Returns the value of attribute server_info.



29
30
31
# File 'lib/api-tester/modules/server_information.rb', line 29

def server_info
  @server_info
end

#server_keyObject

Returns the value of attribute server_key.



29
30
31
# File 'lib/api-tester/modules/server_information.rb', line 29

def server_key
  @server_key
end

Instance Method Details



36
37
38
39
40
# File 'lib/api-tester/modules/server_information.rb', line 36

def print
  puts 'Found server information being broadcast in headers:'
  puts "   #{server_info}"
  puts "     as #{server_key}"
end