Class: Moblues::Reader::Attribute
- Inherits:
-
Object
- Object
- Moblues::Reader::Attribute
- Defined in:
- lib/moblues/reader/attribute.rb
Instance Method Summary collapse
- #attribute(xml) ⇒ Object
-
#initialize ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize ⇒ Attribute
8 9 10 |
# File 'lib/moblues/reader/attribute.rb', line 8 def initialize @type_reader = Type.new end |
Instance Method Details
#attribute(xml) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/moblues/reader/attribute.rb', line 12 def attribute(xml) DataModel::Attribute.new( name: xml.attributes['name'], type: type_reader.map_type_str(xml.attributes['attributeType']) ) end |