Exception: XenAPI::NotMasterError

Inherits:
Error
  • Object
show all
Defined in:
lib/xenapi/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ NotMasterError

Returns a new instance of NotMasterError.



29
30
31
32
# File 'lib/xenapi/error.rb', line 29

def initialize(message)
  super
@master_ip = (/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/).match(message)[0]
end

Instance Attribute Details

#master_ipObject

Returns the value of attribute master_ip.



27
28
29
# File 'lib/xenapi/error.rb', line 27

def master_ip
  @master_ip
end