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.



818
819
820
# File 'lib/google/apis/forms_v1/classes.rb', line 818

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

Instance Attribute Details

#imageGoogle::Apis::FormsV1::Image

Data representing an image. Corresponds to the JSON property image



816
817
818
# File 'lib/google/apis/forms_v1/classes.rb', line 816

def image
  @image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
# File 'lib/google/apis/forms_v1/classes.rb', line 823

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