Class: Mastercontrol::Server::ServerLoad
- Inherits:
-
Object
- Object
- Mastercontrol::Server::ServerLoad
- Defined in:
- lib/mastercontrol/server.rb
Instance Attribute Summary collapse
-
#fifteen ⇒ Object
Returns the value of attribute fifteen.
-
#five ⇒ Object
Returns the value of attribute five.
-
#one ⇒ Object
Returns the value of attribute one.
Instance Method Summary collapse
-
#initialize(res_one, res_five, res_fifteen) ⇒ ServerLoad
constructor
A new instance of ServerLoad.
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
#fifteen ⇒ Object
Returns the value of attribute fifteen.
8 9 10 |
# File 'lib/mastercontrol/server.rb', line 8 def fifteen @fifteen end |
#five ⇒ Object
Returns the value of attribute five.
8 9 10 |
# File 'lib/mastercontrol/server.rb', line 8 def five @five end |
#one ⇒ Object
Returns the value of attribute one.
8 9 10 |
# File 'lib/mastercontrol/server.rb', line 8 def one @one end |