Sha256: 26353a344ffc621d6eb3fa45a18d271be320c3d65a48926c2125d617f5ea0aa2
Contents?: true
Size: 463 Bytes
Versions: 4
Compression:
Stored size: 463 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']) ) end private attr_reader :type_reader end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.3.0 | lib/moblues/reader/attribute.rb |
moblues-0.2.0 | lib/moblues/reader/attribute.rb |
moblues-0.1.0 | lib/moblues/reader/attribute.rb |
moblues-0.0.1 | lib/moblues/reader/attribute.rb |