class ThreeScaleToolbox::CRD::ProductDeploymentParser::AuthenticationParser
Attributes
parser[R]
Public Class Methods
new(cr)
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 58 def initialize(cr) @parser = if cr.has_key? 'userkey' UserKeyParser.new(cr.fetch('userkey')) elsif cr.has_key? 'appKeyAppID' AppKeyParser.new(cr.fetch('appKeyAppID')) elsif cr.has_key? 'oidc' OidcParser.new(cr.fetch('oidc')) else raise ThreeScaleToolbox::Error, "Unknown authentication option: #{cr.keys}" end end
Public Instance Methods
method_missing(name, *args)
click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 71 def method_missing(name, *args) 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 75 def respond_to_missing?(method_name, include_private = false) super end