Class: Fog::Hyperv::Errors::VersionError
- Inherits:
-
ServiceError
- Object
- Errors::Error
- ServiceError
- Fog::Hyperv::Errors::VersionError
- Defined in:
- lib/fog/hyperv.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#required_version ⇒ Object
readonly
Returns the value of attribute required_version.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(required_version, version, function) ⇒ VersionError
constructor
A new instance of VersionError.
Constructor Details
#initialize(required_version, version, function) ⇒ VersionError
Returns a new instance of VersionError.
20 21 22 23 24 25 26 |
# File 'lib/fog/hyperv.rb', line 20 def initialize(required_version, version, function) @function = function @required_version = required_version @version = version super "#{function} requires at least Hyper-V v#{required_version}, you have v#{version}" end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
18 19 20 |
# File 'lib/fog/hyperv.rb', line 18 def function @function end |
#required_version ⇒ Object (readonly)
Returns the value of attribute required_version.
18 19 20 |
# File 'lib/fog/hyperv.rb', line 18 def required_version @required_version end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
18 19 20 |
# File 'lib/fog/hyperv.rb', line 18 def version @version end |