Exception: XenAPI::NotMasterError
- Defined in:
- lib/xenapi/error.rb
Instance Attribute Summary collapse
-
#master_ip ⇒ Object
Returns the value of attribute master_ip.
Instance Method Summary collapse
-
#initialize(message) ⇒ NotMasterError
constructor
A new instance of NotMasterError.
Constructor Details
#initialize(message) ⇒ NotMasterError
Returns a new instance of NotMasterError.
29 30 31 32 |
# File 'lib/xenapi/error.rb', line 29 def initialize() super @master_ip = (/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/).match()[0] end |
Instance Attribute Details
#master_ip ⇒ Object
Returns the value of attribute master_ip.
27 28 29 |
# File 'lib/xenapi/error.rb', line 27 def master_ip @master_ip end |