Class: ScreenshotAPI::Metadata
- Inherits:
-
Object
- Object
- ScreenshotAPI::Metadata
- Defined in:
- lib/screenshotapi/result.rb
Instance Attribute Summary collapse
-
#credits_remaining ⇒ Object
readonly
Returns the value of attribute credits_remaining.
-
#duration_ms ⇒ Object
readonly
Returns the value of attribute duration_ms.
-
#screenshot_id ⇒ Object
readonly
Returns the value of attribute screenshot_id.
Instance Method Summary collapse
-
#initialize(credits_remaining:, screenshot_id:, duration_ms:) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(credits_remaining:, screenshot_id:, duration_ms:) ⇒ Metadata
Returns a new instance of Metadata.
5 6 7 8 9 |
# File 'lib/screenshotapi/result.rb', line 5 def initialize(credits_remaining:, screenshot_id:, duration_ms:) @credits_remaining = credits_remaining @screenshot_id = screenshot_id @duration_ms = duration_ms end |
Instance Attribute Details
#credits_remaining ⇒ Object (readonly)
Returns the value of attribute credits_remaining.
3 4 5 |
# File 'lib/screenshotapi/result.rb', line 3 def credits_remaining @credits_remaining end |
#duration_ms ⇒ Object (readonly)
Returns the value of attribute duration_ms.
3 4 5 |
# File 'lib/screenshotapi/result.rb', line 3 def duration_ms @duration_ms end |
#screenshot_id ⇒ Object (readonly)
Returns the value of attribute screenshot_id.
3 4 5 |
# File 'lib/screenshotapi/result.rb', line 3 def screenshot_id @screenshot_id end |