class ThreeScaleToolbox::CRD::ProductDeploymentParser::AppKeyParser

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 84
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_app_id() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 90
def auth_app_id
  cr['appID']
end
auth_app_key() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 94
def auth_app_key
  cr['appKey']
end
backend_version() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 102
def backend_version
  '2'
end
credentials_location() click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 98
def credentials_location
  cr['credentials']
end
method_missing(name, *args) click to toggle source
# File lib/3scale_toolbox/crds/product_deployment_parser.rb, line 106
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 113
def respond_to_missing?(method_name, include_private = false)
  super
end