Class: Flickr::Transform

Inherits:
APIBase show all
Defined in:
lib/flickr/transform.rb

Instance Attribute Summary

Attributes inherited from APIBase

#flickr

Instance Method Summary collapse

Methods inherited from APIBase

#initialize

Constructor Details

This class inherits a constructor from Flickr::APIBase

Instance Method Details

#rotate(photo, degrees) ⇒ Object



4
5
6
7
8
# File 'lib/flickr/transform.rb', line 4

def rotate(photo,degrees)
	photo = photo.id if photo.class == Flickr::Photo
	@flickr.call_method('flickr.photos.transform.rotate',
		'photo_id' => photo, 'degrees' => degrees)
end