Class: HardwareInformation::SinatraMyHardware

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/hardware_information/www/purchased_hardware/purchased_hardware_for_sinatra.rb

Overview

HardwareInformation::SinatraMyHardware

Constant Summary collapse

USE_THIS_PORT =
#

USE_THIS_PORT

#
'4567'

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSinatraMyHardware

#

initialize

#


23
24
25
26
27
# File 'lib/hardware_information/www/purchased_hardware/purchased_hardware_for_sinatra.rb', line 23

def initialize
  super()
  target = "http://localhost:#{USE_THIS_PORT}/"
  Cyberweb.try_to_open_this_URL_via_the_browser(target, USE_THIS_PORT)
end

Class Method Details

.start_sinatra_interfaceObject

#

HardwareInformation::SinatraMyHardware.start_sinatra_interface

#


47
48
49
# File 'lib/hardware_information/www/purchased_hardware/purchased_hardware_for_sinatra.rb', line 47

def self.start_sinatra_interface
  ::HardwareInformation::SinatraMyHardware.run!
end