class ThreeScaleToolbox::CRD::ProductDeploymentParser::UserKeyParser
Attributes
cr[R]
gaterway_response_parser[R]
security_parser[R]
Public Class Methods
new(cr)
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 121 def initialize(cr) @cr = cr @security_parser = SecurityParser.new(cr.fetch('security', {})) @gaterway_response_parser = GatewayResponseParser.new(cr.fetch('gatewayResponse', {})) end
Public Instance Methods
auth_user_key()
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 131 def auth_user_key cr['authUserKey'] end
backend_version()
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 127 def backend_version '1' end
credentials_location()
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 135 def credentials_location cr['credentials'] end
method_missing(name, *args)
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 139 def method_missing(name, *args) res = security_parser.public_send(name, *args) return res unless res.nil? gaterway_response_parser.public_send(name, *args) end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 146 def respond_to_missing?(method_name, include_private = false) super end