Class: HealthVault::WCData::Thing::Application::Appspecific
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Application::Appspecific
- Defined in:
- lib/wc_data/generated/thing/application/app_specific.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_anything(value) ⇒ Object
value is a HealthVault::WCData::ComplexType.
-
#anything ⇒ Object
remarks: An application can define any arbitrary XML as it’s data.
-
#format_appid ⇒ Object
returns: a String.
-
#format_appid=(value) ⇒ Object
remarks: The application id gives each application a namespace in which to create unique format-tags.
-
#format_tag ⇒ Object
returns: a String.
-
#format_tag=(value) ⇒ Object
remarks: Applications are responsible for the uniqueness of this element.
-
#initialize ⇒ Appspecific
constructor
A new instance of Appspecific.
-
#remove_anything(value) ⇒ Object
value is a #HealthVault::WCData::ComplexType.
-
#summary ⇒ Object
returns: a String.
-
#summary=(value) ⇒ Object
value is a String.
-
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime.
-
#when=(value) ⇒ Object
remarks: If not specified, the effective date will be the date the thing was created.
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 ⇒ Appspecific
Returns a new instance of Appspecific.
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 97 def initialize super self.tag_name = 'app-specific' @children['format-appid'] = {:name => 'format-appid', :class => String, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['format-appid'][:value] = String.new @children['format-tag'] = {:name => 'format-tag', :class => String, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['format-tag'][:value] = String.new @children['when'] = {:name => 'when', :class => HealthVault::WCData::Dates::Datetime, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['summary'] = {:name => 'summary', :class => String, :value => nil, :min => 1, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['summary'][:value] = String.new @children['anything'] = {:name => 'anything', :class => HealthVault::WCData::ComplexType, :value => Array.new, :min => 0, :max => 999999, :order => 5, :place => :extension, :choice => 0 } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#add_anything(value) ⇒ Object
value is a HealthVault::WCData::ComplexType
78 79 80 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 78 def add_anything(value) @children['anything'][:value] << value end |
#anything ⇒ Object
remarks: An application can define any arbitrary XML as it’s data. It may or may not adhere to a published schema. returns: a HealthVault::WCData::ComplexType Array
91 92 93 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 91 def anything return @children['anything'][:value] end |
#format_appid ⇒ Object
returns: a String
27 28 29 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 27 def format_appid return @children['format-appid'][:value] end |
#format_appid=(value) ⇒ Object
remarks: The application id gives each application a namespace in which to create unique format-tags. This does not limit which apps can use the type. If an application format becomes popular it can become a de facto standard. value is a String
22 23 24 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 22 def format_appid=(value) @children['format-appid'][:value] = value end |
#format_tag ⇒ Object
returns: a String
42 43 44 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 42 def format_tag return @children['format-tag'][:value] end |
#format_tag=(value) ⇒ Object
remarks: Applications are responsible for the uniqueness of this element. value is a String
37 38 39 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 37 def format_tag=(value) @children['format-tag'][:value] = value end |
#remove_anything(value) ⇒ Object
value is a #HealthVault::WCData::ComplexType
83 84 85 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 83 def remove_anything(value) @children['anything'][:value].delete(value) end |
#summary ⇒ Object
returns: a String
71 72 73 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 71 def summary return @children['summary'][:value] end |
#summary=(value) ⇒ Object
value is a String
66 67 68 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 66 def summary=(value) @children['summary'][:value] = value end |
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime
57 58 59 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 57 def when return @children['when'][:value] end |
#when=(value) ⇒ Object
remarks: If not specified, the effective date will be the date the thing was created. value is a HealthVault::WCData::Dates::Datetime
52 53 54 |
# File 'lib/wc_data/generated/thing/application/app_specific.rb', line 52 def when=(value) @children['when'][:value] = value end |