Class: Auger::Server

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  @options = args.last.is_a?(Hash) ? args.pop : {}
  @roles = args
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/auger/server.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/auger/server.rb', line 4

def options
  @options
end

#rolesObject

Returns the value of attribute roles.



4
5
6
# File 'lib/auger/server.rb', line 4

def roles
  @roles
end