Class: Logirel::VS::Environment
- Inherits:
-
Object
- Object
- Logirel::VS::Environment
- Defined in:
- lib/logirel/vs/environment.rb
Instance Attribute Summary collapse
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize ⇒ Environment
Returns a new instance of Environment.
8 9 10 11 |
# File 'lib/logirel/vs/environment.rb', line 8 def initialize @owner = registry_get 'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'RegisteredOwner' || 'OWNER' @organization = registry_get 'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'RegisteredOrganization' || 'ORGANIZATION' end |
Instance Attribute Details
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
6 7 8 |
# File 'lib/logirel/vs/environment.rb', line 6 def organization @organization end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
5 6 7 |
# File 'lib/logirel/vs/environment.rb', line 5 def owner @owner end |