Class: Google::Apis::CustomsearchV1::Promotion::Image
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Promotion::Image
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
generated/google/apis/customsearch_v1/representations.rb,
generated/google/apis/customsearch_v1/representations.rb
Overview
Image belonging to a promotion.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
Image height in pixels.
-
#source ⇒ String
URL of the image for this promotion link.
-
#width ⇒ Fixnum
Image width in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
131 132 133 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 131 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Image height in pixels.
Corresponds to the JSON property height
119 120 121 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 119 def height @height end |
#source ⇒ String
URL of the image for this promotion link.
Corresponds to the JSON property source
124 125 126 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 124 def source @source end |
#width ⇒ Fixnum
Image width in pixels.
Corresponds to the JSON property width
129 130 131 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 129 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
136 137 138 139 140 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 136 def update!(**args) @height = args[:height] if args.key?(:height) @source = args[:source] if args.key?(:source) @width = args[:width] if args.key?(:width) end |