Class: Kagi::API::Models::Content::Thumbnail

Inherits:
Data
  • Object
show all
Defined in:
lib/kagi/api/models/content/thumbnail.rb

Overview

Models thumbnail data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, width: nil, height: nil) ⇒ Thumbnail

Returns a new instance of Thumbnail.



9
10
11
# File 'lib/kagi/api/models/content/thumbnail.rb', line 9

def initialize url:, width: nil, height: nil
  super
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



8
9
10
# File 'lib/kagi/api/models/content/thumbnail.rb', line 8

def height
  @height
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



8
9
10
# File 'lib/kagi/api/models/content/thumbnail.rb', line 8

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



8
9
10
# File 'lib/kagi/api/models/content/thumbnail.rb', line 8

def width
  @width
end