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.



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

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.



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

def server_key
  @server_key
end

Instance Method Details



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

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