Class: Google::Apis::RealtimebiddingV1::Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/realtimebidding_v1/classes.rb,
generated/google/apis/realtimebidding_v1/representations.rb,
generated/google/apis/realtimebidding_v1/representations.rb

Overview

An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



893
894
895
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 893

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

Instance Attribute Details

#heightFixnum

Image height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


881
882
883
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 881

def height
  @height
end

#urlString

The URL of the image. Corresponds to the JSON property url

Returns:

  • (String)


886
887
888
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 886

def url
  @url
end

#widthFixnum

Image width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


891
892
893
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 891

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



898
899
900
901
902
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 898

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