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.
574 575 576 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#byte_size ⇒ Fixnum
Corresponds to the JSON property byteSize
542 543 544 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 542 def byte_size @byte_size end |
#context_link ⇒ String
Corresponds to the JSON property contextLink
547 548 549 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 547 def context_link @context_link end |
#height ⇒ Fixnum
Corresponds to the JSON property height
552 553 554 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 552 def height @height end |
#thumbnail_height ⇒ Fixnum
Corresponds to the JSON property thumbnailHeight
557 558 559 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 557 def thumbnail_height @thumbnail_height end |
#thumbnail_link ⇒ String
Corresponds to the JSON property thumbnailLink
562 563 564 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 562 def thumbnail_link @thumbnail_link end |
#thumbnail_width ⇒ Fixnum
Corresponds to the JSON property thumbnailWidth
567 568 569 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 567 def thumbnail_width @thumbnail_width end |
#width ⇒ Fixnum
Corresponds to the JSON property width
572 573 574 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 572 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
579 580 581 582 583 584 585 586 587 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 579 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 |