class OpenSecret::Use
The use use case borrowed from the database world denotes which domain will be used for now (and evermore) on the workstation until another use command is issued.
Observable Value¶ ↑
The workstation configuration file will point to the domain name specified marking it as the current and correct domain to use.
Alternative / Error Flows¶ ↑
Error - if the domain name is not listed in the configuration file. Error - if the (dictionary) path to the domain's base does not exist
Attributes
domain_name[W]
Public Instance Methods
execute()
click to toggle source
The use use case is borrowed from the database world and it denotes the domain to be used for now (and evermore) for this workstation until another use command is issued.
The parameter domain_name
must be set after an object instance is acquired but before the execute method runs.
# File lib/usecase/use.rb, line 30 def execute end
pre_validation()
click to toggle source
# File lib/usecase/use.rb, line 34 def pre_validation end