Class: ScreenshotAPI::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (readonly)

Returns the value of attribute content_type.



13
14
15
# File 'lib/screenshotapi/result.rb', line 13

def content_type
  @content_type
end

#imageObject (readonly)

Returns the value of attribute image.



13
14
15
# File 'lib/screenshotapi/result.rb', line 13

def image
  @image
end

#metadataObject (readonly)

Returns the value of attribute metadata.



13
14
15
# File 'lib/screenshotapi/result.rb', line 13

def 
  @metadata
end