class Yandex::API::Fotki::Album
Attributes
id[R]
link[R]
title[R]
Public Class Methods
new(options)
click to toggle source
<description>
@param [Hash] options Hash from {Fotki::Albums.list} response
# File lib/yandex/api/fotki/album.rb, line 11 def initialize(options) @id = parse_id(options['id']) @title = options['title'] @link = options['link'].map{ |i| { i['rel'] => i['href'] } }.inject(:merge) end
Private Instance Methods
parse_id(string)
click to toggle source
# File lib/yandex/api/fotki/album.rb, line 18 def parse_id(string) string.split(':').last.to_i end