Class: Google::Apis::SurveysV2::SurveyQuestionImage
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SurveysV2::SurveyQuestionImage
 
 
- 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 
Overview
Container object for image data and alt_text.
Instance Attribute Summary collapse
- 
  
    
      #alt_text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The alt text property used in image tags is required for all images.
 - 
  
    
      #data  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question types.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The read-only URL for the hosted images.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SurveyQuestionImage 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SurveyQuestionImage.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SurveyQuestionImage
Returns a new instance of SurveyQuestionImage
      483 484 485  | 
    
      # File 'generated/google/apis/surveys_v2/classes.rb', line 483 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#alt_text ⇒ String
The alt text property used in image tags is required for all images.
Corresponds to the JSON property altText
      469 470 471  | 
    
      # File 'generated/google/apis/surveys_v2/classes.rb', line 469 def alt_text @alt_text end  | 
  
#data ⇒ String
Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question
types.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
      476 477 478  | 
    
      # File 'generated/google/apis/surveys_v2/classes.rb', line 476 def data @data end  | 
  
#url ⇒ String
The read-only URL for the hosted images.
Corresponds to the JSON property url
      481 482 483  | 
    
      # File 'generated/google/apis/surveys_v2/classes.rb', line 481 def url @url end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      488 489 490 491 492  | 
    
      # File 'generated/google/apis/surveys_v2/classes.rb', line 488 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  |