Class: Google::Apis::DriveactivityV2::FieldValue
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::FieldValue
- 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
Contains a value of a Field.
Instance Attribute Summary collapse
-
#date ⇒ Google::Apis::DriveactivityV2::Date
Wrapper for Date Field value.
-
#integer ⇒ Google::Apis::DriveactivityV2::Integer
Wrapper for Integer Field value.
-
#selection ⇒ Google::Apis::DriveactivityV2::Selection
Wrapper for Selection Field value as combined value/display_name pair for selected choice.
-
#selection_list ⇒ Google::Apis::DriveactivityV2::SelectionList
Wrapper for SelectionList Field value.
-
#text ⇒ Google::Apis::DriveactivityV2::Text
Wrapper for Text Field value.
-
#text_list ⇒ Google::Apis::DriveactivityV2::TextList
Wrapper for Text List Field value.
-
#user ⇒ Google::Apis::DriveactivityV2::SingleUser
Wrapper for User Field value.
-
#user_list ⇒ Google::Apis::DriveactivityV2::UserList
Wrapper for UserList Field value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldValue
constructor
A new instance of FieldValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldValue
Returns a new instance of FieldValue.
871 872 873 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 871 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::Apis::DriveactivityV2::Date
Wrapper for Date Field value.
Corresponds to the JSON property date
833 834 835 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 833 def date @date end |
#integer ⇒ Google::Apis::DriveactivityV2::Integer
Wrapper for Integer Field value.
Corresponds to the JSON property integer
838 839 840 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 838 def integer @integer end |
#selection ⇒ Google::Apis::DriveactivityV2::Selection
Wrapper for Selection Field value as combined value/display_name pair for
selected choice.
Corresponds to the JSON property selection
844 845 846 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 844 def selection @selection end |
#selection_list ⇒ Google::Apis::DriveactivityV2::SelectionList
Wrapper for SelectionList Field value.
Corresponds to the JSON property selectionList
849 850 851 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 849 def selection_list @selection_list end |
#text ⇒ Google::Apis::DriveactivityV2::Text
Wrapper for Text Field value.
Corresponds to the JSON property text
854 855 856 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 854 def text @text end |
#text_list ⇒ Google::Apis::DriveactivityV2::TextList
Wrapper for Text List Field value.
Corresponds to the JSON property textList
859 860 861 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 859 def text_list @text_list end |
#user ⇒ Google::Apis::DriveactivityV2::SingleUser
Wrapper for User Field value.
Corresponds to the JSON property user
864 865 866 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 864 def user @user end |
#user_list ⇒ Google::Apis::DriveactivityV2::UserList
Wrapper for UserList Field value.
Corresponds to the JSON property userList
869 870 871 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 869 def user_list @user_list end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
876 877 878 879 880 881 882 883 884 885 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 876 def update!(**args) @date = args[:date] if args.key?(:date) @integer = args[:integer] if args.key?(:integer) @selection = args[:selection] if args.key?(:selection) @selection_list = args[:selection_list] if args.key?(:selection_list) @text = args[:text] if args.key?(:text) @text_list = args[:text_list] if args.key?(:text_list) @user = args[:user] if args.key?(:user) @user_list = args[:user_list] if args.key?(:user_list) end |