Sha256: df2954827f1d332cbbbc7820da31cf5edd38ecd8295f0fa5383fd602feca48b3
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
require 'rexml/document' require 'moblues/data_model/attribute' require 'moblues/reader/type' module Moblues module Reader class Attribute def initialize @type_reader = Type.new end def attribute(xml) DataModel::Attribute.new( name: xml.attributes['name'], type: type_reader.map_type_str(xml.attributes['attributeType']), optional: xml.attributes['optional'] == 'YES' ) end private attr_reader :type_reader end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | lib/moblues/reader/attribute.rb |