class Yandex::API::Fotki::Me
Class Me
is wrapper for user service document
@see tech.yandex.ru/fotki/doc/operations-ref/service-document-get-docpage/
Attributes
album[R]
photo[R]
tag[R]
Public Class Methods
new(response)
click to toggle source
Parse response from Fotki.oauth
@param [RestClient::Response] response
# File lib/yandex/api/fotki/me.rb, line 16 def initialize(response) # Nokogiri::XML(me).xpath("/app:service/app:workspace/app:collection[@id='album-list']/@href").text collention = Fotki.xml_to_hash(response)['service']['workspace']['collection'].map{ |i| { i['id'] => i['href'] }}.inject(:merge) @album = collention['album-list'] @photo = collention['photo-list'] @tag = collention['tag-list'] end