class Moblues::Reader::Attribute

Attributes

type_reader[R]

Public Class Methods

new() click to toggle source
# File lib/moblues/reader/attribute.rb, line 8
def initialize
  @type_reader = Type.new
end

Public Instance Methods

attribute(xml) click to toggle source
# 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']),
   optional: xml.attributes['optional'] == 'YES'
 )
end