Class: ClassicApi::Resource::Image

Inherits:
Base
  • Object
show all
Defined in:
lib/classic_api/resource/image.rb

Instance Method Summary collapse

Methods inherited from Base

#api, create!, #insist!

Instance Method Details

#transform(options = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/classic_api/resource/image.rb', line 8

def transform(options={})
  api.transformations.create(
    strategy: options[:strategy],
    width: options[:width],
    height: options[:height],
    image_id: self.id
  )
end