Class: HealthVault::WCData::Methods::GetThings::ThingFilterSpec
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Methods::GetThings::ThingFilterSpec
- Defined in:
- lib/wc_data/generated/methods/get_things/thing_filter_spec.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_thing_state(value) ⇒ Object
value is a HealthVault::WCData::Thing::ThingState.
-
#add_type_id(value) ⇒ Object
value is a HealthVault::WCData::Types::Guid.
-
#created_app_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#created_app_id=(value) ⇒ Object
remarks: Each application is identified by a unique application id.
-
#created_date_max ⇒ Object
returns: a String.
-
#created_date_max=(value) ⇒ Object
remarks: When used with created-date-min, can specify a creation date range for searching things.
-
#created_date_min ⇒ Object
returns: a String.
-
#created_date_min=(value) ⇒ Object
remarks: When used with created-date-max, can specify a creation date range for searching things.
-
#created_person_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#created_person_id=(value) ⇒ Object
remarks: Each person is identified by a unique person id.
-
#eff_date_max ⇒ Object
returns: a String.
-
#eff_date_max=(value) ⇒ Object
remarks: If this was a weight measurement, the effective time refers to the date the weight was taken, not when it was stored.
-
#eff_date_min ⇒ Object
returns: a String.
-
#eff_date_min=(value) ⇒ Object
remarks: If this was a weight measurement, the effective time refers to the date the weight was taken, not when it was stored.
-
#initialize ⇒ ThingFilterSpec
constructor
A new instance of ThingFilterSpec.
-
#remove_thing_state(value) ⇒ Object
value is a #HealthVault::WCData::Thing::ThingState.
-
#remove_type_id(value) ⇒ Object
value is a #HealthVault::WCData::Types::Guid.
-
#thing_state ⇒ Object
remarks: Current values for the state are “Active” and “Deleted”.
-
#type_id ⇒ Object
remarks: The list of thing types can be queried through the Dictionary.
-
#updated_app_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#updated_app_id=(value) ⇒ Object
remarks: Each application is identified by a unique application id.
-
#updated_date_max ⇒ Object
returns: a String.
-
#updated_date_max=(value) ⇒ Object
remarks: When used with updated-date-min, can specify a updated date range for searching things.
-
#updated_date_min ⇒ Object
returns: a String.
-
#updated_date_min=(value) ⇒ Object
remarks: When used with updated-date-max, can specify a updated date range for searching things.
-
#updated_person_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#updated_person_id=(value) ⇒ Object
remarks: Each person is identified by a unique person id.
-
#xpath ⇒ Object
returns: a String.
-
#xpath=(value) ⇒ Object
- remarks: XPath with wildcards such as //, *, descendant::, descendant-or-self
-
are not allowed.
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 ⇒ ThingFilterSpec
Returns a new instance of ThingFilterSpec.
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 223 def initialize super self.tag_name = 'thingfilterspec' @children['type-id'] = {:name => 'type-id', :class => HealthVault::WCData::Types::Guid, :value => Array.new, :min => 0, :max => 999999, :order => 1, :place => :element, :choice => 0 } @children['thing-state'] = {:name => 'thing-state', :class => HealthVault::WCData::Thing::ThingState, :value => Array.new, :min => 0, :max => 2, :order => 2, :place => :element, :choice => 0 } @children['eff-date-min'] = {:name => 'eff-date-min', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['eff-date-max'] = {:name => 'eff-date-max', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['created-app-id'] = {:name => 'created-app-id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['created-person-id'] = {:name => 'created-person-id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 } @children['updated-app-id'] = {:name => 'updated-app-id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 0, :max => 1, :order => 7, :place => :element, :choice => 0 } @children['updated-person-id'] = {:name => 'updated-person-id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 0, :max => 1, :order => 8, :place => :element, :choice => 0 } @children['created-date-min'] = {:name => 'created-date-min', :class => String, :value => nil, :min => 0, :max => 1, :order => 9, :place => :element, :choice => 0 } @children['created-date-max'] = {:name => 'created-date-max', :class => String, :value => nil, :min => 0, :max => 1, :order => 10, :place => :element, :choice => 0 } @children['updated-date-min'] = {:name => 'updated-date-min', :class => String, :value => nil, :min => 0, :max => 1, :order => 11, :place => :element, :choice => 0 } @children['updated-date-max'] = {:name => 'updated-date-max', :class => String, :value => nil, :min => 0, :max => 1, :order => 12, :place => :element, :choice => 0 } @children['xpath'] = {:name => 'xpath', :class => String, :value => nil, :min => 0, :max => 1, :order => 13, :place => :element, :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_thing_state(value) ⇒ Object
value is a HealthVault::WCData::Thing::ThingState
39 40 41 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 39 def add_thing_state(value) @children['thing-state'][:value] << value end |
#add_type_id(value) ⇒ Object
value is a HealthVault::WCData::Types::Guid
19 20 21 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 19 def add_type_id(value) @children['type-id'][:value] << value end |
#created_app_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
97 98 99 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 97 def created_app_id return @children['created-app-id'][:value] end |
#created_app_id=(value) ⇒ Object
remarks: Each application is identified by a unique application id. value is a HealthVault::WCData::Types::Guid
92 93 94 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 92 def created_app_id=(value) @children['created-app-id'][:value] = value end |
#created_date_max ⇒ Object
returns: a String
172 173 174 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 172 def created_date_max return @children['created-date-max'][:value] end |
#created_date_max=(value) ⇒ Object
remarks: When used with created-date-min, can specify a creation date range for searching things. If create-date-min is not specified, things that are created earlier than created-date-max are returned. All values being compared are compared as less than or equal to. value is a String
167 168 169 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 167 def created_date_max=(value) @children['created-date-max'][:value] = value end |
#created_date_min ⇒ Object
returns: a String
157 158 159 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 157 def created_date_min return @children['created-date-min'][:value] end |
#created_date_min=(value) ⇒ Object
remarks: When used with created-date-max, can specify a creation date range for searching things. If create-date-max is not specified, things that are created after created-date-min are returned. All values being compared are compared as greater than or equal to. value is a String
152 153 154 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 152 def created_date_min=(value) @children['created-date-min'][:value] = value end |
#created_person_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
112 113 114 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 112 def created_person_id return @children['created-person-id'][:value] end |
#created_person_id=(value) ⇒ Object
remarks: Each person is identified by a unique person id. value is a HealthVault::WCData::Types::Guid
107 108 109 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 107 def created_person_id=(value) @children['created-person-id'][:value] = value end |
#eff_date_max ⇒ Object
returns: a String
82 83 84 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 82 def eff_date_max return @children['eff-date-max'][:value] end |
#eff_date_max=(value) ⇒ Object
remarks: If this was a weight measurement, the effective time refers to the date the weight was taken, not when it was stored. When used with eff-date-min, can specify a range for effective dates for searching things. If eff-date-min is not specified, things that are created after eff-date-max are returned. All values being compared are compared as less than or equal to. value is a String
77 78 79 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 77 def eff_date_max=(value) @children['eff-date-max'][:value] = value end |
#eff_date_min ⇒ Object
returns: a String
67 68 69 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 67 def eff_date_min return @children['eff-date-min'][:value] end |
#eff_date_min=(value) ⇒ Object
remarks: If this was a weight measurement, the effective time refers to the date the weight was taken, not when it was stored. When used with eff-date-max, can specify a range for effective dates for searching things. If eff-date-max is not specified, things that are created after eff-date-min are returned. All values being compared are compared as greater than or equal to. value is a String
62 63 64 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 62 def eff_date_min=(value) @children['eff-date-min'][:value] = value end |
#remove_thing_state(value) ⇒ Object
value is a #HealthVault::WCData::Thing::ThingState
44 45 46 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 44 def remove_thing_state(value) @children['thing-state'][:value].delete(value) end |
#remove_type_id(value) ⇒ Object
value is a #HealthVault::WCData::Types::Guid
24 25 26 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 24 def remove_type_id(value) @children['type-id'][:value].delete(value) end |
#thing_state ⇒ Object
remarks: Current values for the state are “Active” and “Deleted”. returns: a HealthVault::WCData::Thing::ThingState Array
52 53 54 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 52 def thing_state return @children['thing-state'][:value] end |
#type_id ⇒ Object
remarks: The list of thing types can be queried through the Dictionary. returns: a HealthVault::WCData::Types::Guid Array
32 33 34 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 32 def type_id return @children['type-id'][:value] end |
#updated_app_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
127 128 129 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 127 def updated_app_id return @children['updated-app-id'][:value] end |
#updated_app_id=(value) ⇒ Object
remarks: Each application is identified by a unique application id. value is a HealthVault::WCData::Types::Guid
122 123 124 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 122 def updated_app_id=(value) @children['updated-app-id'][:value] = value end |
#updated_date_max ⇒ Object
returns: a String
202 203 204 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 202 def updated_date_max return @children['updated-date-max'][:value] end |
#updated_date_max=(value) ⇒ Object
remarks: When used with updated-date-min, can specify a updated date range for searching things. If updated-date-min is not specified, things that are created earlier than updated-date-max are returned. All values being compared are compared as less than or equal to. value is a String
197 198 199 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 197 def updated_date_max=(value) @children['updated-date-max'][:value] = value end |
#updated_date_min ⇒ Object
returns: a String
187 188 189 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 187 def updated_date_min return @children['updated-date-min'][:value] end |
#updated_date_min=(value) ⇒ Object
remarks: When used with updated-date-max, can specify a updated date range for searching things. If updated-date-max is not specified, things that are created after updated-date-min are returned. All values being compared are compared as greater than or equal to. value is a String
182 183 184 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 182 def updated_date_min=(value) @children['updated-date-min'][:value] = value end |
#updated_person_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
142 143 144 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 142 def updated_person_id return @children['updated-person-id'][:value] end |
#updated_person_id=(value) ⇒ Object
remarks: Each person is identified by a unique person id. value is a HealthVault::WCData::Types::Guid
137 138 139 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 137 def updated_person_id=(value) @children['updated-person-id'][:value] = value end |
#xpath ⇒ Object
returns: a String
217 218 219 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 217 def xpath return @children['xpath'][:value] end |
#xpath=(value) ⇒ Object
- remarks: XPath with wildcards such as //, *, descendant::, descendant-or-self
-
are not allowed. The xpath is only used as a matching criteria. You can’t use the xpath to count the number of results or add up values. The error INVALID_FILTER will be returned if wildcards are detected.
value is a String
212 213 214 |
# File 'lib/wc_data/generated/methods/get_things/thing_filter_spec.rb', line 212 def xpath=(value) @children['xpath'][:value] = value end |