Class: RightScale::Platform::WindowsSystemInformation::Version
- Defined in:
- lib/right_agent/platform/windows/platform.rb
Overview
System version
Instance Attribute Summary collapse
-
#build ⇒ Object
readonly
Returns the value of attribute build.
-
#major ⇒ Object
readonly
Returns the value of attribute major.
-
#minor ⇒ Object
readonly
Returns the value of attribute minor.
Instance Method Summary collapse
-
#initialize(major, minor, build) ⇒ Version
constructor
A new instance of Version.
-
#to_s ⇒ String
Stringized version.
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
#build ⇒ Object (readonly)
Returns the value of attribute build.
1696 1697 1698 |
# File 'lib/right_agent/platform/windows/platform.rb', line 1696 def build @build end |
#major ⇒ Object (readonly)
Returns the value of attribute major.
1696 1697 1698 |
# File 'lib/right_agent/platform/windows/platform.rb', line 1696 def major @major end |
#minor ⇒ Object (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_s ⇒ String
Returns stringized version.
1705 1706 1707 |
# File 'lib/right_agent/platform/windows/platform.rb', line 1705 def to_s [major, minor, build].join('.') end |