Class: HealthVault::WCData::Methods::GetThings::ThingRequestGroup
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Methods::GetThings::ThingRequestGroup
- Defined in:
- lib/wc_data/generated/methods/get_things/thing_request_group.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_filter(value) ⇒ Object
value is a HealthVault::WCData::Methods::GetThings::ThingFilterSpec.
-
#add_id(value) ⇒ Object
value is a HealthVault::WCData::Types::Guid.
-
#add_key(value) ⇒ Object
value is a HealthVault::WCData::Thing::ThingKey.
-
#current_version_only ⇒ Object
returns: a String.
-
#current_version_only=(value) ⇒ Object
remarks: This can be set to false only by the auditing subsystem.
-
#filter ⇒ Object
returns: a HealthVault::WCData::Methods::GetThings::ThingFilterSpec Array.
-
#format ⇒ Object
returns: a HealthVault::WCData::Methods::GetThings::ThingFormatSpec.
-
#format=(value) ⇒ Object
value is a HealthVault::WCData::Methods::GetThings::ThingFormatSpec.
-
#id ⇒ Object
returns: a HealthVault::WCData::Types::Guid Array.
-
#initialize ⇒ ThingRequestGroup
constructor
A new instance of ThingRequestGroup.
-
#key ⇒ Object
returns: a HealthVault::WCData::Thing::ThingKey Array.
-
#max ⇒ Object
returns: a String.
-
#max=(value) ⇒ Object
value is a String.
-
#max_full ⇒ Object
returns: a String.
-
#max_full=(value) ⇒ Object
remarks: For each request, the server might set a maximum number for complete things that might be returned.
-
#name ⇒ Object
returns: a String.
-
#name=(value) ⇒ Object
remarks: This is used to distinguish this group from other groups that are specified as part of this same search.
-
#remove_filter(value) ⇒ Object
value is a #HealthVault::WCData::Methods::GetThings::ThingFilterSpec.
-
#remove_id(value) ⇒ Object
value is a #HealthVault::WCData::Types::Guid.
-
#remove_key(value) ⇒ Object
value is a #HealthVault::WCData::Thing::ThingKey.
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 ⇒ ThingRequestGroup
Returns a new instance of ThingRequestGroup.
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 148 def initialize super self.tag_name = 'thingrequestgroup' @children['id'] = {:name => 'id', :class => HealthVault::WCData::Types::Guid, :value => Array.new, :min => 0, :max => 999999, :order => 1, :place => :element, :choice => 21970261 } @children['key'] = {:name => 'key', :class => HealthVault::WCData::Thing::ThingKey, :value => Array.new, :min => 0, :max => 999999, :order => 2, :place => :element, :choice => 21970261 } @children['filter'] = {:name => 'filter', :class => HealthVault::WCData::Methods::GetThings::ThingFilterSpec, :value => Array.new, :min => 0, :max => 999999, :order => 3, :place => :element, :choice => 0 } @children['format'] = {:name => 'format', :class => HealthVault::WCData::Methods::GetThings::ThingFormatSpec, :value => nil, :min => 1, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['format'][:value] = HealthVault::WCData::Methods::GetThings::ThingFormatSpec.new @children['current-version-only'] = {:name => 'current-version-only', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['name'] = {:name => 'name', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['max'] = {:name => 'max', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['max-full'] = {:name => 'max-full', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :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_filter(value) ⇒ Object
value is a HealthVault::WCData::Methods::GetThings::ThingFilterSpec
57 58 59 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 57 def add_filter(value) @children['filter'][:value] << value end |
#add_id(value) ⇒ Object
value is a HealthVault::WCData::Types::Guid
19 20 21 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 19 def add_id(value) @children['id'][:value] << value end |
#add_key(value) ⇒ Object
value is a HealthVault::WCData::Thing::ThingKey
38 39 40 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 38 def add_key(value) @children['key'][:value] << value end |
#current_version_only ⇒ Object
returns: a String
98 99 100 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 98 def current_version_only return @children['current-version-only'][:value] end |
#current_version_only=(value) ⇒ Object
remarks: This can be set to false only by the auditing subsystem. value is a String
93 94 95 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 93 def current_version_only=(value) @children['current-version-only'][:value] = value end |
#filter ⇒ Object
returns: a HealthVault::WCData::Methods::GetThings::ThingFilterSpec Array
69 70 71 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 69 def filter return @children['filter'][:value] end |
#format ⇒ Object
returns: a HealthVault::WCData::Methods::GetThings::ThingFormatSpec
83 84 85 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 83 def format return @children['format'][:value] end |
#format=(value) ⇒ Object
value is a HealthVault::WCData::Methods::GetThings::ThingFormatSpec
78 79 80 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 78 def format=(value) @children['format'][:value] = value end |
#id ⇒ Object
returns: a HealthVault::WCData::Types::Guid Array
31 32 33 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 31 def id return @children['id'][:value] end |
#key ⇒ Object
returns: a HealthVault::WCData::Thing::ThingKey Array
50 51 52 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 50 def key return @children['key'][:value] end |
#max ⇒ Object
returns: a String
127 128 129 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 127 def max return @children['max'][:value] end |
#max=(value) ⇒ Object
value is a String
122 123 124 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 122 def max=(value) @children['max'][:value] = value end |
#max_full ⇒ Object
returns: a String
142 143 144 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 142 def max_full return @children['max-full'][:value] end |
#max_full=(value) ⇒ Object
remarks: For each request, the server might set a maximum number for complete things that might be returned. Past this maximum, the server will return the list of thing-ids of the results. To retrieve the things represented by these ids, additional GetThings calls can be made with these thing ids supplied in the ThingRequestGroup. value is a String
137 138 139 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 137 def max_full=(value) @children['max-full'][:value] = value end |
#name ⇒ Object
returns: a String
113 114 115 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 113 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
remarks: This is used to distinguish this group from other groups that are specified as part of this same search. value is a String
108 109 110 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 108 def name=(value) @children['name'][:value] = value end |
#remove_filter(value) ⇒ Object
value is a #HealthVault::WCData::Methods::GetThings::ThingFilterSpec
62 63 64 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 62 def remove_filter(value) @children['filter'][:value].delete(value) end |
#remove_id(value) ⇒ Object
value is a #HealthVault::WCData::Types::Guid
24 25 26 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 24 def remove_id(value) @children['id'][:value].delete(value) end |
#remove_key(value) ⇒ Object
value is a #HealthVault::WCData::Thing::ThingKey
43 44 45 |
# File 'lib/wc_data/generated/methods/get_things/thing_request_group.rb', line 43 def remove_key(value) @children['key'][:value].delete(value) end |