Class: ThreeScaleToolbox::CRD::ProductDeploymentParser::SecurityParser

Inherits:
Object
  • Object
show all
Defined in:
lib/3scale_toolbox/crds/product_deployment_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#crObject (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_rewriteObject



211
212
213
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 211

def hostname_rewrite
  cr['hostHeader']
end

#secret_tokenObject



207
208
209
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 207

def secret_token
  cr['secretToken']
end