Class: Logirel::VS::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/logirel/vs/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnvironment

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

#organizationObject (readonly)

Returns the value of attribute organization.



6
7
8
# File 'lib/logirel/vs/environment.rb', line 6

def organization
  @organization
end

#ownerObject (readonly)

Returns the value of attribute owner.



5
6
7
# File 'lib/logirel/vs/environment.rb', line 5

def owner
  @owner
end