Class: ImageKit

Inherits:
Object
  • Object
show all
Defined in:
lib/imagekit/version.rb,
lib/imagekit/imagekit.rb

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, options = {}, api_key = nil) ⇒ ImageKit

Returns a new instance of ImageKit.



6
7
8
9
10
# File 'lib/imagekit/imagekit.rb', line 6

def initialize(url, options = {}, api_key = nil)
  @url = url
  @options = options
  @api_key = api_key
end

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



17
18
19
# File 'lib/imagekit/imagekit.rb', line 17

def api_key
  @api_key
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/imagekit/imagekit.rb', line 12

def to_s
  "https://api.imagekit.co/screenshot?#{query_string}"
end