Class: MDQT::CLI::Options
- Inherits:
-
Struct
- Object
- Struct
- MDQT::CLI::Options
- Defined in:
- lib/mdqt/cli/options.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#explain ⇒ Object
Returns the value of attribute explain.
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#list ⇒ Object
Returns the value of attribute list.
-
#refresh ⇒ Object
Returns the value of attribute refresh.
-
#save_to ⇒ Object
Returns the value of attribute save_to.
-
#service ⇒ Object
Returns the value of attribute service.
-
#tls_risky ⇒ Object
Returns the value of attribute tls_risky.
-
#validate ⇒ Object
Returns the value of attribute validate.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
-
#verify_with ⇒ Object
Returns the value of attribute verify_with.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(**args) ⇒ Options
Returns a new instance of Options.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/mdqt/cli/options.rb', line 20 def initialize(**args) = { service: :not_required, hash: nil, cache: nil, refresh: nil, verify_with: nil, validate: nil, all: nil, explain: nil, tls_risky: nil, save_to: nil, list: nil, verbose: nil, **MDQT::CLI::Defaults.cli_defaults } super(**, **args) end |
Instance Attribute Details
#all ⇒ Object
Returns the value of attribute all
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def all @all end |
#cache ⇒ Object
Returns the value of attribute cache
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def cache @cache end |
#explain ⇒ Object
Returns the value of attribute explain
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def explain @explain end |
#hash ⇒ Object
Returns the value of attribute hash
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def hash @hash end |
#list ⇒ Object
Returns the value of attribute list
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def list @list end |
#refresh ⇒ Object
Returns the value of attribute refresh
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def refresh @refresh end |
#save_to ⇒ Object
Returns the value of attribute save_to
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def save_to @save_to end |
#service ⇒ Object
Returns the value of attribute service
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def service @service end |
#tls_risky ⇒ Object
Returns the value of attribute tls_risky
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def tls_risky @tls_risky end |
#validate ⇒ Object
Returns the value of attribute validate
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def validate @validate end |
#verbose ⇒ Object
Returns the value of attribute verbose
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def verbose @verbose end |
#verify_with ⇒ Object
Returns the value of attribute verify_with
5 6 7 |
# File 'lib/mdqt/cli/options.rb', line 5 def verify_with @verify_with end |