Class: ThreeScaleToolbox::CRD::ProductDeploymentParser::AuthenticationFlowParser

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) ⇒ AuthenticationFlowParser

Returns a new instance of AuthenticationFlowParser.



283
284
285
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 283

def initialize(cr)
  @cr = cr
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



303
304
305
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 303

def method_missing(name, *args)
  nil
end

Instance Attribute Details

#crObject (readonly)

Returns the value of attribute cr.



281
282
283
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 281

def cr
  @cr
end

Instance Method Details

#direct_access_grants_enabledObject



299
300
301
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 299

def direct_access_grants_enabled
  cr.fetch('directAccessGrantsEnabled', false)
end

#implicit_flow_enabledObject



291
292
293
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 291

def implicit_flow_enabled
  cr.fetch('implicitFlowEnabled', false)
end

#service_accounts_enabledObject



295
296
297
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 295

def service_accounts_enabled
  cr.fetch('serviceAccountsEnabled', false)
end

#standard_flow_enabledObject



287
288
289
# File 'lib/3scale_toolbox/crds/product_deployment_parser.rb', line 287

def standard_flow_enabled
  cr.fetch('standardFlowEnabled', false)
end