Class: ScreenshotAPI::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/screenshotapi/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_remainingObject (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_msObject (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_idObject (readonly)

Returns the value of attribute screenshot_id.



3
4
5
# File 'lib/screenshotapi/result.rb', line 3

def screenshot_id
  @screenshot_id
end