Class: Pot::Instance
- Inherits:
-
Object
- Object
- Pot::Instance
- Defined in:
- lib/pot/instance.rb
Constant Summary collapse
- REGISTER =
{}
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(name, host, options = {}) ⇒ Instance
constructor
A new instance of Instance.
Constructor Details
#initialize(name, host, options = {}) ⇒ Instance
Returns a new instance of Instance.
11 12 13 14 15 16 17 18 19 |
# File 'lib/pot/instance.rb', line 11 def initialize(name, host, = {}) @name = name @host = host @user = [:user] @password = [:password] @port = [:port] REGISTER[name] = self end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
5 6 7 |
# File 'lib/pot/instance.rb', line 5 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/pot/instance.rb', line 5 def name @name end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
5 6 7 |
# File 'lib/pot/instance.rb', line 5 def password @password end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
5 6 7 |
# File 'lib/pot/instance.rb', line 5 def port @port end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
5 6 7 |
# File 'lib/pot/instance.rb', line 5 def user @user end |