Class: Google::Apis::DriveactivityV2::FieldValueChange
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::FieldValueChange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb
Overview
Change to a Field value.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The human-readable display name for this field.
-
#field_id ⇒ String
The ID of this field.
-
#new_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
-
#old_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldValueChange
constructor
A new instance of FieldValueChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldValueChange
Returns a new instance of FieldValueChange.
912 913 914 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 912 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The human-readable display name for this field.
Corresponds to the JSON property displayName
895 896 897 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 895 def display_name @display_name end |
#field_id ⇒ String
The ID of this field. Field IDs are unique within a Label.
Corresponds to the JSON property fieldId
900 901 902 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 900 def field_id @field_id end |
#new_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
Corresponds to the JSON property newValue
905 906 907 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 905 def new_value @new_value end |
#old_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
Corresponds to the JSON property oldValue
910 911 912 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 910 def old_value @old_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
917 918 919 920 921 922 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 917 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @field_id = args[:field_id] if args.key?(:field_id) @new_value = args[:new_value] if args.key?(:new_value) @old_value = args[:old_value] if args.key?(:old_value) end |