Class: UnAPI::Format
- Inherits:
-
Object
- Object
- UnAPI::Format
- Defined in:
- lib/unapi/format.rb
Instance Attribute Summary collapse
-
#docs ⇒ Object
Returns the value of attribute docs.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace_uri ⇒ Object
Returns the value of attribute namespace_uri.
-
#schema_location ⇒ Object
Returns the value of attribute schema_location.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#docs ⇒ Object
Returns the value of attribute docs.
4 5 6 |
# File 'lib/unapi/format.rb', line 4 def docs @docs end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/unapi/format.rb', line 4 def name @name end |
#namespace_uri ⇒ Object
Returns the value of attribute namespace_uri.
4 5 6 |
# File 'lib/unapi/format.rb', line 4 def namespace_uri @namespace_uri end |
#schema_location ⇒ Object
Returns the value of attribute schema_location.
4 5 6 |
# File 'lib/unapi/format.rb', line 4 def schema_location @schema_location end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/unapi/format.rb', line 4 def type @type end |
Class Method Details
.new_from_element(element) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/unapi/format.rb', line 6 def Format.new_from_element(element) format = Format.new format.name = element.attributes['name'] format.type = element.attributes['type'] format.docs = element.attributes['docs'] return format end |