Class: BalancingAct::Server

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/balancing_act/server.rb', line 3

def name
  @name
end

#sizeObject

Returns the value of attribute size.



3
4
5
# File 'lib/balancing_act/server.rb', line 3

def size
  @size
end