Class: Crawlberg::ImageInfo
- Inherits:
-
Object
- Object
- Crawlberg::ImageInfo
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#alt ⇒ String?
readonly
Returns the value of attribute alt.
-
#height ⇒ Integer?
readonly
Returns the value of attribute height.
-
#source ⇒ ImageSource
readonly
Returns the value of attribute source.
-
#url ⇒ String
readonly
Returns the value of attribute url.
-
#width ⇒ Integer?
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize ⇒ ImageInfo
constructor
A new instance of ImageInfo.
Constructor Details
#initialize ⇒ ImageInfo
Returns a new instance of ImageInfo.
316 |
# File 'sig/types.rbs', line 316
def initialize: (?url: String, ?alt: String, ?width: Integer, ?height: Integer, ?source: ImageSource) -> void
|
Instance Attribute Details
#alt ⇒ String? (readonly)
Returns the value of attribute alt.
311 312 313 |
# File 'sig/types.rbs', line 311 def alt @alt end |
#height ⇒ Integer? (readonly)
Returns the value of attribute height.
313 314 315 |
# File 'sig/types.rbs', line 313 def height @height end |
#source ⇒ ImageSource (readonly)
Returns the value of attribute source.
314 315 316 |
# File 'sig/types.rbs', line 314 def source @source end |
#url ⇒ String (readonly)
Returns the value of attribute url.
310 311 312 |
# File 'sig/types.rbs', line 310 def url @url end |
#width ⇒ Integer? (readonly)
Returns the value of attribute width.
312 313 314 |
# File 'sig/types.rbs', line 312 def width @width end |