Class: Auger::Server
- Inherits:
-
Object
- Object
- Auger::Server
- Defined in:
- lib/auger/server.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#roles ⇒ Object
Returns the value of attribute roles.
Instance Method Summary collapse
-
#initialize(name, *args) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(name, *args) ⇒ Server
Returns a new instance of Server.
6 7 8 9 10 |
# File 'lib/auger/server.rb', line 6 def initialize(name, *args) @name = name = args.last.is_a?(Hash) ? args.pop : {} @roles = args end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/auger/server.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/auger/server.rb', line 4 def end |
#roles ⇒ Object
Returns the value of attribute roles.
4 5 6 |
# File 'lib/auger/server.rb', line 4 def roles @roles end |