Class: CloudfoundryBlueGreenDeploy::Route
- Inherits:
-
Object
- Object
- CloudfoundryBlueGreenDeploy::Route
- Defined in:
- lib/cloudfoundry_blue_green_deploy/route.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host, domain, app) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(host, domain, app) ⇒ Route
Returns a new instance of Route.
4 5 6 7 8 |
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 4 def initialize(host, domain, app) @host = host @domain = domain @app = app == '' ? nil : app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
3 4 5 |
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 3 def app @app end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
3 4 5 |
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 3 def domain @domain end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
3 4 5 |
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 3 def host @host end |