Class: UnAPI::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/unapi/format.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#docsObject

Returns the value of attribute docs.



4
5
6
# File 'lib/unapi/format.rb', line 4

def docs
  @docs
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/unapi/format.rb', line 4

def name
  @name
end

#namespace_uriObject

Returns the value of attribute namespace_uri.



4
5
6
# File 'lib/unapi/format.rb', line 4

def namespace_uri
  @namespace_uri
end

#schema_locationObject

Returns the value of attribute schema_location.



4
5
6
# File 'lib/unapi/format.rb', line 4

def schema_location
  @schema_location
end

#typeObject

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