Class: Google::Apis::ConsumersurveysV2::SurveyRejection

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) ⇒ SurveyRejection

Returns a new instance of SurveyRejection



556
557
558
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 556

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

Instance Attribute Details

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


549
550
551
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 549

def explanation
  @explanation
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


554
555
556
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 554

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



561
562
563
564
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 561

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