Class: OpenNebula::XMLElement

Inherits:
Object
  • Object
show all
Defined in:
service/objects/xml_element.rb

Overview

OpenNebula::XMLElement class

Instance Method Summary collapse

Instance Method Details

#to_hash!Object

Calls info! method and returns a hash representing the object



4
5
6
# File 'service/objects/xml_element.rb', line 4

def to_hash!
    self.info! || self.to_hash
end

#to_json(opts = {}) ⇒ Object



7
8
9
# File 'service/objects/xml_element.rb', line 7

def to_json opts = {}
    to_hash!.to_json opts
end