Class: Google::Apis::HealthcareV1::Attribute
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::Attribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb
Overview
An attribute value for a Consent or User data mapping. Each Attribute must have a corresponding AttributeDefinition in the consent store that defines the default and allowed values.
Instance Attribute Summary collapse
-
#attribute_definition_id ⇒ String
Indicates the name of an attribute defined in the consent store.
-
#values ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attribute
constructor
A new instance of Attribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Attribute
Returns a new instance of Attribute.
109 110 111 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_definition_id ⇒ String
Indicates the name of an attribute defined in the consent store.
Corresponds to the JSON property attributeDefinitionId
99 100 101 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 99 def attribute_definition_id @attribute_definition_id end |
#values ⇒ Array<String>
Required. The value of the attribute. Must be an acceptable value as defined
in the consent store. For example, if the consent store defines "data type"
with acceptable values "questionnaire" and "step-count", when the attribute
name is data type, this field must contain one of those values.
Corresponds to the JSON property values
107 108 109 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 107 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
114 115 116 117 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 114 def update!(**args) @attribute_definition_id = args[:attribute_definition_id] if args.key?(:attribute_definition_id) @values = args[:values] if args.key?(:values) end |