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:
- lib/google/apis/customsearch_v1/classes.rb,
lib/google/apis/customsearch_v1/representations.rb,
lib/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.
129 130 131 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Image height in pixels.
Corresponds to the JSON property height
117 118 119 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 117 def height @height end |
#source ⇒ String
URL of the image for this promotion link.
Corresponds to the JSON property source
122 123 124 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 122 def source @source end |
#width ⇒ Fixnum
Image width in pixels.
Corresponds to the JSON property width
127 128 129 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 127 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
134 135 136 137 138 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 134 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 |