Class: Jisota::Server
- Inherits:
-
Object
- Object
- Jisota::Server
- Defined in:
- lib/jisota/server.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(host = nil, options = {}) ⇒ Server
constructor
A new instance of Server.
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, = {}) @roles = [] @host = host @user = [:user] @roles = Array([:roles]) if [:roles] end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/jisota/server.rb', line 3 def host @host end |
#roles ⇒ Object
Returns the value of attribute roles.
3 4 5 |
# File 'lib/jisota/server.rb', line 3 def roles @roles end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/jisota/server.rb', line 3 def user @user end |