Class: RightScale::Platform::WindowsSystemInformation::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/right_agent/platform/windows/platform.rb

Overview

System version

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(major, minor, build) ⇒ Version

Returns a new instance of Version.



1698
1699
1700
1701
1702
# File 'lib/right_agent/platform/windows/platform.rb', line 1698

def initialize(major, minor, build)
  @major = major
  @minor = minor
  @build = build
end

Instance Attribute Details

#buildObject (readonly)

Returns the value of attribute build.



1696
1697
1698
# File 'lib/right_agent/platform/windows/platform.rb', line 1696

def build
  @build
end

#majorObject (readonly)

Returns the value of attribute major.



1696
1697
1698
# File 'lib/right_agent/platform/windows/platform.rb', line 1696

def major
  @major
end

#minorObject (readonly)

Returns the value of attribute minor.



1696
1697
1698
# File 'lib/right_agent/platform/windows/platform.rb', line 1696

def minor
  @minor
end

Instance Method Details

#to_sString

Returns stringized version.

Returns:

  • (String)

    stringized version



1705
1706
1707
# File 'lib/right_agent/platform/windows/platform.rb', line 1705

def to_s
  [major, minor, build].join('.')
end