Class: Google::Apis::ConsumersurveysV2::SurveyQuestionImage

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

Returns a new instance of SurveyQuestionImage



530
531
532
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 530

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

Instance Attribute Details

#alt_textString

Corresponds to the JSON property altText

Returns:

  • (String)


517
518
519
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 517

def alt_text
  @alt_text
end

#dataString

Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


523
524
525
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 523

def data
  @data
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


528
529
530
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 528

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



535
536
537
538
539
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 535

def update!(**args)
  @alt_text = args[:alt_text] if args.key?(:alt_text)
  @data = args[:data] if args.key?(:data)
  @url = args[:url] if args.key?(:url)
end