Class: Google::Apis::CustomsearchV1::Promotion::Image

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



185
186
187
# File 'generated/google/apis/customsearch_v1/classes.rb', line 185

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


173
174
175
# File 'generated/google/apis/customsearch_v1/classes.rb', line 173

def height
  @height
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


178
179
180
# File 'generated/google/apis/customsearch_v1/classes.rb', line 178

def source
  @source
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


183
184
185
# File 'generated/google/apis/customsearch_v1/classes.rb', line 183

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



190
191
192
193
194
# File 'generated/google/apis/customsearch_v1/classes.rb', line 190

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