Class: HealthVault::WCData::Thing::Types::Documentreferencetype
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Types::Documentreferencetype
- Defined in:
- lib/wc_data/generated/thing/types/document_reference_type.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#document_index ⇒ Object
returns: a String.
-
#document_index=(value) ⇒ Object
value is a String.
-
#initialize ⇒ Documentreferencetype
constructor
A new instance of Documentreferencetype.
-
#title ⇒ Object
returns: a String.
-
#title=(value) ⇒ Object
value is a String.
-
#url ⇒ Object
returns: a String.
-
#url=(value) ⇒ Object
value is a String.
-
#version ⇒ Object
returns: a String.
-
#version=(value) ⇒ Object
value is a String.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ Documentreferencetype
Returns a new instance of Documentreferencetype.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 74 def initialize super self.tag_name = 'document-reference-type' @children['title'] = {:name => 'title', :class => String, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['title'][:value] = String.new @children['url'] = {:name => 'url', :class => String, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['url'][:value] = String.new @children['document-index'] = {:name => 'document-index', :class => String, :value => nil, :min => 1, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['document-index'][:value] = String.new @children['version'] = {:name => 'version', :class => String, :value => nil, :min => 1, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['version'][:value] = String.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#document_index ⇒ Object
returns: a String
54 55 56 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 54 def document_index return @children['document-index'][:value] end |
#document_index=(value) ⇒ Object
value is a String
49 50 51 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 49 def document_index=(value) @children['document-index'][:value] = value end |
#title ⇒ Object
returns: a String
26 27 28 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 26 def title return @children['title'][:value] end |
#title=(value) ⇒ Object
value is a String
21 22 23 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 21 def title=(value) @children['title'][:value] = value end |
#url ⇒ Object
returns: a String
40 41 42 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 40 def url return @children['url'][:value] end |
#url=(value) ⇒ Object
value is a String
35 36 37 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 35 def url=(value) @children['url'][:value] = value end |
#version ⇒ Object
returns: a String
68 69 70 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 68 def version return @children['version'][:value] end |
#version=(value) ⇒ Object
value is a String
63 64 65 |
# File 'lib/wc_data/generated/thing/types/document_reference_type.rb', line 63 def version=(value) @children['version'][:value] = value end |