Class: MDQT::CLI::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/mdqt/cli/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  options = {
    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(**options, **args)
end

Instance Attribute Details

#allObject

Returns the value of attribute all

Returns:

  • (Object)

    the current value of all



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def all
  @all
end

#cacheObject

Returns the value of attribute cache

Returns:

  • (Object)

    the current value of cache



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def cache
  @cache
end

#explainObject

Returns the value of attribute explain

Returns:

  • (Object)

    the current value of explain



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def explain
  @explain
end

#hashObject

Returns the value of attribute hash

Returns:

  • (Object)

    the current value of hash



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def hash
  @hash
end

#listObject

Returns the value of attribute list

Returns:

  • (Object)

    the current value of list



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def list
  @list
end

#refreshObject

Returns the value of attribute refresh

Returns:

  • (Object)

    the current value of refresh



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def refresh
  @refresh
end

#save_toObject

Returns the value of attribute save_to

Returns:

  • (Object)

    the current value of save_to



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def save_to
  @save_to
end

#serviceObject

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def service
  @service
end

#tls_riskyObject

Returns the value of attribute tls_risky

Returns:

  • (Object)

    the current value of tls_risky



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def tls_risky
  @tls_risky
end

#validateObject

Returns the value of attribute validate

Returns:

  • (Object)

    the current value of validate



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def validate
  @validate
end

#verboseObject

Returns the value of attribute verbose

Returns:

  • (Object)

    the current value of verbose



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def verbose
  @verbose
end

#verify_withObject

Returns the value of attribute verify_with

Returns:

  • (Object)

    the current value of verify_with



5
6
7
# File 'lib/mdqt/cli/options.rb', line 5

def verify_with
  @verify_with
end