Class: WeBee::VirtualMachine
- Inherits:
-
Object
- Object
- WeBee::VirtualMachine
- Includes:
- SAXMachine
- Defined in:
- lib/webee.rb
Instance Method Summary collapse
Methods included from SAXMachine
Instance Method Details
#enterprise ⇒ Object
966 967 968 969 970 |
# File 'lib/webee.rb', line 966 def enterprise return nil if not managed? doc = Nokogiri.parse(RestClient.get(Api.build_url(enterprise_url) , :accept => :xml)) Enterprise.parse doc.root.to_s end |
#machine ⇒ Object
972 973 974 975 |
# File 'lib/webee.rb', line 972 def machine doc = Nokogiri.parse(RestClient.get(Api.build_url(machine_url) , :accept => :xml)) Machine.parse doc.root.to_s end |
#managed? ⇒ Boolean
962 963 964 |
# File 'lib/webee.rb', line 962 def managed? id_type.eql?("0") ? false : true end |