Class: ImageKit
- Inherits:
-
Object
- Object
- ImageKit
- Defined in:
- lib/imagekit/version.rb,
lib/imagekit/imagekit.rb
Constant Summary collapse
- VERSION =
"1.0.2"
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(url, options = {}, api_key = nil) ⇒ ImageKit
constructor
A new instance of ImageKit.
- #to_s ⇒ Object
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, = {}, api_key = nil) @url = url = @api_key = api_key end |
Class Attribute Details
.api_key ⇒ Object
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_s ⇒ Object
12 13 14 |
# File 'lib/imagekit/imagekit.rb', line 12 def to_s "https://api.imagekit.co/screenshot?#{query_string}" end |