Class: Kagi::API::Models::Content::Thumbnail
- Inherits:
-
Data
- Object
- Data
- Kagi::API::Models::Content::Thumbnail
- Defined in:
- lib/kagi/api/models/content/thumbnail.rb
Overview
Models thumbnail data.
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(url:, width: nil, height: nil) ⇒ Thumbnail
constructor
A new instance of Thumbnail.
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
#height ⇒ Object (readonly)
Returns the value of attribute height
8 9 10 |
# File 'lib/kagi/api/models/content/thumbnail.rb', line 8 def height @height end |
#url ⇒ Object (readonly)
Returns the value of attribute url
8 9 10 |
# File 'lib/kagi/api/models/content/thumbnail.rb', line 8 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width
8 9 10 |
# File 'lib/kagi/api/models/content/thumbnail.rb', line 8 def width @width end |