Class: Google::Apis::FormsV1::ImageItem

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

An item containing an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageItem

Returns a new instance of ImageItem.



834
835
836
# File 'lib/google/apis/forms_v1/classes.rb', line 834

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

Instance Attribute Details

#imageGoogle::Apis::FormsV1::Image

Data representing an image. Corresponds to the JSON property image



832
833
834
# File 'lib/google/apis/forms_v1/classes.rb', line 832

def image
  @image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



839
840
841
# File 'lib/google/apis/forms_v1/classes.rb', line 839

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