Class: Jisota::Server

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host = nil, options = {}) ⇒ Server

Returns a new instance of Server.



5
6
7
8
9
10
# File 'lib/jisota/server.rb', line 5

def initialize(host = nil, options = {})
  @roles = []
  @host = host
  @user = options[:user]
  @roles = Array(options[:roles]) if options[:roles]
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#rolesObject

Returns the value of attribute roles.



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

def roles
  @roles
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end