Class: RestPki::XmlIdResolutionTable
- Inherits:
-
Object
- Object
- RestPki::XmlIdResolutionTable
- Defined in:
- lib/rest_pki/xml_id_resolution_table.rb
Instance Attribute Summary collapse
-
#element_id_attributes ⇒ Object
Returns the value of attribute element_id_attributes.
-
#global_id_attributes ⇒ Object
Returns the value of attribute global_id_attributes.
-
#include_xml_id_attribute ⇒ Object
Returns the value of attribute include_xml_id_attribute.
Instance Method Summary collapse
- #add_global_id_attribute(local_name, namespace = nil) ⇒ Object
-
#initialize(inc_xml_id_attribute = nil) ⇒ XmlIdResolutionTable
constructor
A new instance of XmlIdResolutionTable.
- #set_element_id_attribute(element_local_name, element_namespace, attribute_local_name, attribute_namespace = nil) ⇒ Object
- #to_model ⇒ Object
Constructor Details
#initialize(inc_xml_id_attribute = nil) ⇒ XmlIdResolutionTable
Returns a new instance of XmlIdResolutionTable.
5 6 7 8 9 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 5 def initialize(inc_xml_id_attribute=nil) @include_xml_id_attribute = inc_xml_id_attribute @element_id_attributes = Hash.new @global_id_attributes = Hash.new end |
Instance Attribute Details
#element_id_attributes ⇒ Object
Returns the value of attribute element_id_attributes.
3 4 5 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 3 def element_id_attributes @element_id_attributes end |
#global_id_attributes ⇒ Object
Returns the value of attribute global_id_attributes.
3 4 5 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 3 def global_id_attributes @global_id_attributes end |
#include_xml_id_attribute ⇒ Object
Returns the value of attribute include_xml_id_attribute.
3 4 5 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 3 def include_xml_id_attribute @include_xml_id_attribute end |
Instance Method Details
#add_global_id_attribute(local_name, namespace = nil) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 11 def add_global_id_attribute(local_name, namespace=nil) @global_id_attributes.push({ localName: local_name, namespace: namespace }) end |
#set_element_id_attribute(element_local_name, element_namespace, attribute_local_name, attribute_namespace = nil) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 18 def set_element_id_attribute(element_local_name, element_namespace, attribute_local_name, attribute_namespace=nil) @element_id_attributes.push({ element: { localName: element_local_name, namespace: element_namespace }, attribute: { localName: attribute_local_name, namespace: attribute_namespace } }) end |
#to_model ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/rest_pki/xml_id_resolution_table.rb', line 31 def to_model { includeXmlIdAttribute: @include_xml_id_attribute, elementIdAttributes: @element_id_attributes, globalIdAttributes: @global_id_attributes } end |