Class Core::Providers::Interfaceerator::Provider
In: core/serviceproviders/interfaceerator.rb
Parent: Object

Interfaceerator is the module that translates from XML into property objects. These can be used by the View to present the user with the options as the creator defines them in universe.xml.

Methods

Included Modules

Interfaces::ServiceProvider

Public Class methods

[Source]

# File core/serviceproviders/interfaceerator.rb, line 27
        def initialize(params={})
        end

Public Instance methods

Given a hash containing extended information for a node, this method returns an XML string representing it. The expected parameters are:

  • extended_info: A hash with :uid, :type and :properties.

All parameters are required.

[Source]

# File core/serviceproviders/interfaceerator.rb, line 35
        def service_interfaceerator_to_xml(*args)
          if (args.size != 1)
            raise ServiceRequestInvalidArgumentError.new('Invalid parameters. Required parameters: extended_info')
          end        
          info = args[0]
          info.to_xml(:root => 'extendednode')
        end

[Validate]