Class: Switest::Configuration
- Inherits:
-
Object
- Object
- Switest::Configuration
- Defined in:
- lib/switest/configuration.rb
Instance Attribute Summary collapse
-
#default_timeout ⇒ Object
Returns the value of attribute default_timeout.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/switest/configuration.rb', line 7 def initialize @host = "127.0.0.1" @port = 8021 @password = "ClueCon" @default_timeout = 5 end |
Instance Attribute Details
#default_timeout ⇒ Object
Returns the value of attribute default_timeout.
5 6 7 |
# File 'lib/switest/configuration.rb', line 5 def default_timeout @default_timeout end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/switest/configuration.rb', line 5 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/switest/configuration.rb', line 5 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
5 6 7 |
# File 'lib/switest/configuration.rb', line 5 def port @port end |
Instance Method Details
#to_h ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/switest/configuration.rb', line 14 def to_h { host: @host, port: @port, password: @password, default_timeout: @default_timeout } end |