Class: Google::Apis::ConsumersurveysV2::ResultsMask

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResultsMask

Returns a new instance of ResultsMask



202
203
204
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 202

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

Instance Attribute Details

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

Corresponds to the JSON property fields



195
196
197
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 195

def fields
  @fields
end

#projectionString

Corresponds to the JSON property projection

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 200

def projection
  @projection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 207

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