Class: ThreeScaleToolbox::CRD::ProductDeploymentParser::ApicastHostedParser
- Inherits:
-
Object
- Object
- ThreeScaleToolbox::CRD::ProductDeploymentParser::ApicastHostedParser
- Defined in:
- lib/3scale_toolbox/crds/product_deployment_parser.rb
Instance Attribute Summary collapse
-
#authentication_parser ⇒ Object
readonly
Returns the value of attribute authentication_parser.
Instance Method Summary collapse
- #deployment_option ⇒ Object
-
#initialize(cr) ⇒ ApicastHostedParser
constructor
A new instance of ApicastHostedParser.
- #method_missing(name, *args) ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Constructor Details
#initialize(cr) ⇒ ApicastHostedParser
Returns a new instance of ApicastHostedParser.
9 10 11 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 9 def initialize(cr) @authentication_parser = AuthenticationParser.new(cr.fetch('authentication', {})) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
17 18 19 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 17 def method_missing(name, *args) authentication_parser.public_send(name, *args) end |
Instance Attribute Details
#authentication_parser ⇒ Object (readonly)
Returns the value of attribute authentication_parser.
7 8 9 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 7 def authentication_parser @authentication_parser end |
Instance Method Details
#deployment_option ⇒ Object
13 14 15 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 13 def deployment_option 'hosted' end |
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
21 22 23 |
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 21 def respond_to_missing?(method_name, include_private = false) super end |