Class: Inspec::Resources::OracledbConf
- Inherits:
-
Object
- Object
- Inspec::Resources::OracledbConf
- Defined in:
- lib/inspec/resources/oracledb_conf.rb
Instance Attribute Summary collapse
-
#oracledb_session ⇒ Object
readonly
Returns the value of attribute oracledb_session.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ OracledbConf
constructor
A new instance of OracledbConf.
- #method_missing(name) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ OracledbConf
Returns a new instance of OracledbConf.
18 19 20 |
# File 'lib/inspec/resources/oracledb_conf.rb', line 18 def initialize(opts = {}) @oracledb_session = inspec.oracledb_session(opts) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
22 23 24 25 |
# File 'lib/inspec/resources/oracledb_conf.rb', line 22 def method_missing(name) setting = name.to_s.upcase determine_database_setting(setting) end |
Instance Attribute Details
#oracledb_session ⇒ Object (readonly)
Returns the value of attribute oracledb_session.
16 17 18 |
# File 'lib/inspec/resources/oracledb_conf.rb', line 16 def oracledb_session @oracledb_session end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/inspec/resources/oracledb_conf.rb', line 27 def to_s "Oracle DB Configuration" end |