Class: Google::Apis::FormsV1::Image

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

Overview

Data representing an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



796
797
798
# File 'lib/google/apis/forms_v1/classes.rb', line 796

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

Instance Attribute Details

#alt_textString

A description of the image that is shown on hover and read by screenreaders. Corresponds to the JSON property altText

Returns:

  • (String)


777
778
779
# File 'lib/google/apis/forms_v1/classes.rb', line 777

def alt_text
  @alt_text
end

#content_uriString

Output only. A URI from which you can download the image; this is valid only for a limited time. Corresponds to the JSON property contentUri

Returns:

  • (String)


783
784
785
# File 'lib/google/apis/forms_v1/classes.rb', line 783

def content_uri
  @content_uri
end

#propertiesGoogle::Apis::FormsV1::MediaProperties

Properties of the media. Corresponds to the JSON property properties



788
789
790
# File 'lib/google/apis/forms_v1/classes.rb', line 788

def properties
  @properties
end

#source_uriString

Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched. Corresponds to the JSON property sourceUri

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/forms_v1/classes.rb', line 794

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



801
802
803
804
805
806
# File 'lib/google/apis/forms_v1/classes.rb', line 801

def update!(**args)
  @alt_text = args[:alt_text] if args.key?(:alt_text)
  @content_uri = args[:content_uri] if args.key?(:content_uri)
  @properties = args[:properties] if args.key?(:properties)
  @source_uri = args[:source_uri] if args.key?(:source_uri)
end