lib/vkontakte/api/photos.rb in vkontakte-0.0.4 vs lib/vkontakte/api/photos.rb in vkontakte-0.0.5
- old
+ new
@@ -8,18 +8,10 @@
@photos ||= Standart.new(self)
end
end
end
- module Extended
- def self.included(base)
- base.define_method :photos do
- @photos ||= Extend.new(self)
- end
- end
- end
-
class Standart < Api::Base
# возвращает список альбомов пользователя.
#
def getAlbums(options={})
@@ -119,16 +111,11 @@
# сохраняет фотографию после успешной загрузки.
#
def saveWallPhoto(options={})
call('photos.saveWallPhoto', options)
end
- end
-
-
-
-
- class Extend < Standart
+
# возвращает список комментариев к фотографии.
#
def getComments(options={})
call('photos.getComments', options)
end
@@ -209,10 +196,8 @@
#
def delete(options={})
call('photos.delete', options)
end
end
-
-
end
end
end