Class: BalancingAct::Server
- Inherits:
-
Object
- Object
- BalancingAct::Server
- Defined in:
- lib/balancing_act/server.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(name, size) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(name, size) ⇒ Server
Returns a new instance of Server.
5 6 7 8 9 10 |
# File 'lib/balancing_act/server.rb', line 5 def initialize(name, size) if valid_params?(name, size) @name = name @size = size end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/balancing_act/server.rb', line 3 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
3 4 5 |
# File 'lib/balancing_act/server.rb', line 3 def size @size end |