Class: ThreeScaleToolbox::CRD::ProductDeploymentParser::SecurityParser
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::CRD::ProductDeploymentParser::SecurityParser
- Defined in:
- lib/3scale_toolbox/crds/product_deployment_parser.rb
Instance Attribute Summary collapse
-
#cr ⇒ Object
readonly
Returns the value of attribute cr.
Instance Method Summary collapse
- #hostname_rewrite ⇒ Object
-
#initialize(cr) ⇒ SecurityParser
constructor
A new instance of SecurityParser.
- #method_missing(name, *args) ⇒ Object
- #secret_token ⇒ Object
Constructor Details
#initialize(cr) ⇒ SecurityParser
Returns a new instance of SecurityParser.
203 204 205 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 203 def initialize(cr) @cr = cr end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
215 216 217 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 215 def method_missing(name, *args) nil end |
Instance Attribute Details
#cr ⇒ Object (readonly)
Returns the value of attribute cr.
201 202 203 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 201 def cr @cr end |
Instance Method Details
#hostname_rewrite ⇒ Object
211 212 213 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 211 def hostname_rewrite cr['hostHeader'] end |
#secret_token ⇒ Object
207 208 209 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 207 def secret_token cr['secretToken'] end |