Class: Google::Apis::CustomsearchV1::Result::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.



568
569
570
# File 'generated/google/apis/customsearch_v1/classes.rb', line 568

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

Instance Attribute Details

#byte_sizeFixnum

Corresponds to the JSON property byteSize

Returns:

  • (Fixnum)


536
537
538
# File 'generated/google/apis/customsearch_v1/classes.rb', line 536

def byte_size
  @byte_size
end

Corresponds to the JSON property contextLink

Returns:

  • (String)


541
542
543
# File 'generated/google/apis/customsearch_v1/classes.rb', line 541

def context_link
  @context_link
end

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


546
547
548
# File 'generated/google/apis/customsearch_v1/classes.rb', line 546

def height
  @height
end

#thumbnail_heightFixnum

Corresponds to the JSON property thumbnailHeight

Returns:

  • (Fixnum)


551
552
553
# File 'generated/google/apis/customsearch_v1/classes.rb', line 551

def thumbnail_height
  @thumbnail_height
end

Corresponds to the JSON property thumbnailLink

Returns:

  • (String)


556
557
558
# File 'generated/google/apis/customsearch_v1/classes.rb', line 556

def thumbnail_link
  @thumbnail_link
end

#thumbnail_widthFixnum

Corresponds to the JSON property thumbnailWidth

Returns:

  • (Fixnum)


561
562
563
# File 'generated/google/apis/customsearch_v1/classes.rb', line 561

def thumbnail_width
  @thumbnail_width
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


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