Class: Swagger::Data::XMLObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-swagger/data/xml_object.rb

Overview

Class Method Summary collapse

Methods inherited from Object

attr_swagger, #bulk_set, #swagger_attributes, #to_json, #to_swagger, #to_yaml

Class Method Details

.parse(xml_object) ⇒ Object



8
9
10
11
12
# File 'lib/ruby-swagger/data/xml_object.rb', line 8

def self.parse(xml_object)
  return nil unless xml_object

  Swagger::Data::XMLObject.new.bulk_set(xml_object)
end