Class: Google::Apis::SurveysV2::ResultsMask

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/surveys_v2/classes.rb,
generated/google/apis/surveys_v2/representations.rb,
generated/google/apis/surveys_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResultsMask

Returns a new instance of ResultsMask



114
115
116
# File 'generated/google/apis/surveys_v2/classes.rb', line 114

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldsArray<Google::Apis::SurveysV2::FieldMask>

Corresponds to the JSON property fields



107
108
109
# File 'generated/google/apis/surveys_v2/classes.rb', line 107

def fields
  @fields
end

#projectionString

Corresponds to the JSON property projection

Returns:

  • (String)


112
113
114
# File 'generated/google/apis/surveys_v2/classes.rb', line 112

def projection
  @projection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



119
120
121
122
# File 'generated/google/apis/surveys_v2/classes.rb', line 119

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @projection = args[:projection] if args.key?(:projection)
end