Class: ThreeScaleToolbox::CRD::ProductDeploymentParser::ApicastHostedParser

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) ⇒ 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_parserObject (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_optionObject



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

Returns:

  • (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