Class: HealthVault::WCData::Methods::Response::GetApplicationSettings::Info
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Methods::Response::GetApplicationSettings::Info
- Defined in:
- lib/wc_data/generated/methods/response/get_application_settings/info.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#app_settings ⇒ Object
returns: a HealthVault::WCData::Methods::Response::GetApplicationSettings::AppSettings.
-
#app_settings=(value) ⇒ Object
remarks: An application can store person preferences and other settings for the person in the Microsoft Health Service.
-
#initialize ⇒ Info
constructor
A new instance of Info.
-
#selected_record_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#selected_record_id=(value) ⇒ Object
remarks: Most Microsoft Health Applications will work with single health record at a time.
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 ⇒ Info
Returns a new instance of Info.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/wc_data/generated/methods/response/get_application_settings/info.rb', line 49 def initialize super self.tag_name = 'info' @children['app-settings'] = {:name => 'app-settings', :class => HealthVault::WCData::Methods::Response::GetApplicationSettings::AppSettings, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['selected-record-id'] = {:name => 'selected-record-id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 0, :max => 1, :order => 2, :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
#app_settings ⇒ Object
returns: a HealthVault::WCData::Methods::Response::GetApplicationSettings::AppSettings
28 29 30 |
# File 'lib/wc_data/generated/methods/response/get_application_settings/info.rb', line 28 def app_settings return @children['app-settings'][:value] end |
#app_settings=(value) ⇒ Object
remarks: An application can store person preferences and other settings for the person in the Microsoft Health Service. These settings are automatically returned when GetPersonInfo is called but can also be retrieved through the use of GetApplicationSettings. value is a HealthVault::WCData::Methods::Response::GetApplicationSettings::AppSettings
23 24 25 |
# File 'lib/wc_data/generated/methods/response/get_application_settings/info.rb', line 23 def app_settings=(value) @children['app-settings'][:value] = value end |
#selected_record_id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
43 44 45 |
# File 'lib/wc_data/generated/methods/response/get_application_settings/info.rb', line 43 def selected_record_id return @children['selected-record-id'][:value] end |
#selected_record_id=(value) ⇒ Object
remarks: Most Microsoft Health Applications will work with single health record at a time. The Microsoft Health Service stores the most recently selected record identifier that the user chose to use with the application when the user authorized the application to access the record. value is a HealthVault::WCData::Types::Guid
38 39 40 |
# File 'lib/wc_data/generated/methods/response/get_application_settings/info.rb', line 38 def selected_record_id=(value) @children['selected-record-id'][:value] = value end |