Class: RSpec::Httpd::Config
- Inherits:
-
Object
- Object
- RSpec::Httpd::Config
- Defined in:
- lib/rspec/httpd/config.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 |
# File 'lib/rspec/httpd/config.rb', line 6 def initialize self.host = "127.0.0.1" self.port = 12_345 self.command = "bundle exec rackup -E test -p 12345" end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
4 5 6 |
# File 'lib/rspec/httpd/config.rb', line 4 def command @command end |
#host ⇒ Object
Returns the value of attribute host.
2 3 4 |
# File 'lib/rspec/httpd/config.rb', line 2 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/rspec/httpd/config.rb', line 3 def port @port end |