Sha256: a3bd058611df522d5c9dce8cf7dae3389109cefd9ab769a2281b5b6b239df9a2
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
module CloudQuery class Schema attr_accessor :name, :fields def initialize(name) @name = name @fields = [] end def to_xml Nokogiri::XML::Builder.new { |doc| doc.schema(:name => @name, :store => 'yes') { @fields.each { |field| field.to_node(doc) } } }.to_xml end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xoopit-cloud_query-0.2.0 | lib/cloud_query/schema.rb |
xoopit-cloud_query-0.2.1 | lib/cloud_query/schema.rb |