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



574
575
576
# File 'generated/google/apis/customsearch_v1/classes.rb', line 574

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

Instance Attribute Details

#byte_sizeFixnum

Corresponds to the JSON property byteSize

Returns:

  • (Fixnum)


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

def byte_size
  @byte_size
end

Corresponds to the JSON property contextLink

Returns:

  • (String)


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

def context_link
  @context_link
end

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


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

def height
  @height
end

#thumbnail_heightFixnum

Corresponds to the JSON property thumbnailHeight

Returns:

  • (Fixnum)


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

def thumbnail_height
  @thumbnail_height
end

Corresponds to the JSON property thumbnailLink

Returns:

  • (String)


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

def thumbnail_link
  @thumbnail_link
end

#thumbnail_widthFixnum

Corresponds to the JSON property thumbnailWidth

Returns:

  • (Fixnum)


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

def thumbnail_width
  @thumbnail_width
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


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