Class: Mastercontrol::Server::ServerLoad

Inherits:
Object
  • Object
show all
Defined in:
lib/mastercontrol/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(res_one, res_five, res_fifteen) ⇒ ServerLoad

Returns a new instance of ServerLoad.



9
10
11
12
13
# File 'lib/mastercontrol/server.rb', line 9

def initialize(res_one, res_five, res_fifteen)
  @one = res_one.to_f
  @five = res_five.to_f
  @fifteen = res_fifteen.to_f
end

Instance Attribute Details

#fifteenObject

Returns the value of attribute fifteen.



8
9
10
# File 'lib/mastercontrol/server.rb', line 8

def fifteen
  @fifteen
end

#fiveObject

Returns the value of attribute five.



8
9
10
# File 'lib/mastercontrol/server.rb', line 8

def five
  @five
end

#oneObject

Returns the value of attribute one.



8
9
10
# File 'lib/mastercontrol/server.rb', line 8

def one
  @one
end