Class: Google::Apis::CustomsearchV1::Result::Image
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Result::Image
- 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
-
#byte_size ⇒ Fixnum
Corresponds to the JSON property
byteSize
. -
#context_link ⇒ String
Corresponds to the JSON property
contextLink
. -
#height ⇒ Fixnum
Corresponds to the JSON property
height
. -
#thumbnail_height ⇒ Fixnum
Corresponds to the JSON property
thumbnailHeight
. -
#thumbnail_link ⇒ String
Corresponds to the JSON property
thumbnailLink
. -
#thumbnail_width ⇒ Fixnum
Corresponds to the JSON property
thumbnailWidth
. -
#width ⇒ Fixnum
Corresponds to the JSON property
width
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image
568 569 570 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 568 def initialize(**args) update!(**args) end |
Instance Attribute Details
#byte_size ⇒ Fixnum
Corresponds to the JSON property byteSize
536 537 538 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 536 def byte_size @byte_size end |
#context_link ⇒ String
Corresponds to the JSON property contextLink
541 542 543 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 541 def context_link @context_link end |
#height ⇒ Fixnum
Corresponds to the JSON property height
546 547 548 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 546 def height @height end |
#thumbnail_height ⇒ Fixnum
Corresponds to the JSON property thumbnailHeight
551 552 553 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 551 def thumbnail_height @thumbnail_height end |
#thumbnail_link ⇒ String
Corresponds to the JSON property thumbnailLink
556 557 558 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 556 def thumbnail_link @thumbnail_link end |
#thumbnail_width ⇒ Fixnum
Corresponds to the JSON property thumbnailWidth
561 562 563 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 561 def thumbnail_width @thumbnail_width end |
#width ⇒ Fixnum
Corresponds to the JSON property width
566 567 568 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 566 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
573 574 575 576 577 578 579 580 581 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 573 def update!(**args) @byte_size = args[:byte_size] if args.key?(:byte_size) @context_link = args[:context_link] if args.key?(:context_link) @height = args[:height] if args.key?(:height) @thumbnail_height = args[:thumbnail_height] if args.key?(:thumbnail_height) @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) @thumbnail_width = args[:thumbnail_width] if args.key?(:thumbnail_width) @width = args[:width] if args.key?(:width) end |