lib/moblues/reader/attribute.rb in moblues-0.3.0 vs lib/moblues/reader/attribute.rb in moblues-0.4.0
- old
+ new
@@ -10,10 +10,11 @@
end
def attribute(xml)
DataModel::Attribute.new(
name: xml.attributes['name'],
- type: type_reader.map_type_str(xml.attributes['attributeType'])
+ type: type_reader.map_type_str(xml.attributes['attributeType']),
+ optional: xml.attributes['optional'] == 'YES'
)
end
private
attr_reader :type_reader