Class: Googletastic::Album

Inherits:
Base
  • Object
show all
Defined in:
lib/googletastic/album.rb

Constant Summary

Constants included from Mixins::Namespaces

Mixins::Namespaces::NAMESPACES

Instance Attribute Summary

Attributes inherited from Base

#acl, #attachment_path, #created_at, #etag, #head, #id, #keep_raw, #raw, #response, #synced_with, #updated_at

Attributes included from Mixins::Attributes

#attributes

Class Method Summary collapse

Methods inherited from Base

#initialize, #to_xml

Methods included from Mixins::Pagination

included

Methods included from Mixins::Finders

included

Methods included from Mixins::Parsing

included

Methods included from Mixins::Requesting

included

Methods included from Mixins::Attributes

#attribute_names, #has_attribute?, #inspect

Methods included from Mixins::Namespaces

included

Constructor Details

This class inherits a constructor from Googletastic::Base

Class Method Details

.client_classObject



5
6
7
# File 'lib/googletastic/album.rb', line 5

def client_class
  "Photos"
end

.index_urlObject



9
10
11
# File 'lib/googletastic/album.rb', line 9

def index_url
  "http://picasaweb.google.com/data/feed/api/user/default"
end

.unmarshall(xml) ⇒ Object



13
14
15
16
17
18
# File 'lib/googletastic/album.rb', line 13

def unmarshall(xml)
  records = xml.xpath("//atom:entry", ns_tag("atom")).collect do |record|
    
  end
  records
end