Class: ScreenshotAPI::Result
- Inherits:
-
Object
- Object
- ScreenshotAPI::Result
- Defined in:
- lib/screenshotapi/result.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(image:, content_type:, metadata:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(image:, content_type:, metadata:) ⇒ Result
Returns a new instance of Result.
15 16 17 18 19 |
# File 'lib/screenshotapi/result.rb', line 15 def initialize(image:, content_type:, metadata:) @image = image @content_type = content_type @metadata = end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
13 14 15 |
# File 'lib/screenshotapi/result.rb', line 13 def content_type @content_type end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
13 14 15 |
# File 'lib/screenshotapi/result.rb', line 13 def image @image end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
13 14 15 |
# File 'lib/screenshotapi/result.rb', line 13 def @metadata end |