Class: Picasa::Presenter::Tag

Inherits:
Base
  • Object
show all
Defined in:
lib/picasa/presenter/tag.rb

Instance Attribute Summary

Attributes inherited from Base

#parsed_body

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect

Methods included from Utils

array_wrap, inline_query, map_to_boolean, map_to_date, map_to_float, map_to_integer, retrieve, safe_retrieve

Constructor Details

This class inherits a constructor from Picasa::Presenter::Base

Instance Method Details

#authorPresenter::Author

Returns:


7
8
9
# File 'lib/picasa/presenter/tag.rb', line 7

def author
  @author ||= Author.new(parsed_body["author"][0])
end

#etagString

Returns:

  • (String)

27
28
29
# File 'lib/picasa/presenter/tag.rb', line 27

def etag
  @etag ||= safe_retrieve(parsed_body, "gd$etag")
end

#idString

Returns:

  • (String)

37
38
39
# File 'lib/picasa/presenter/tag.rb', line 37

def id
  @id ||= safe_retrieve(parsed_body, "id")
end

Returns:


12
13
14
# File 'lib/picasa/presenter/tag.rb', line 12

def links
  @links ||= array_wrap(safe_retrieve(parsed_body, "link")).map { |link| Link.new(link) }
end

#summaryString

Returns:

  • (String)

32
33
34
# File 'lib/picasa/presenter/tag.rb', line 32

def summary
  @summary ||= safe_retrieve(parsed_body, "summary")
end

#titleString

Returns:

  • (String)

22
23
24
# File 'lib/picasa/presenter/tag.rb', line 22

def title
  @title ||= safe_retrieve(parsed_body, "title")
end

#updatedDateTime

Returns:

  • (DateTime)

17
18
19
# File 'lib/picasa/presenter/tag.rb', line 17

def updated
  @updated ||= map_to_date(safe_retrieve(parsed_body, "updated"))
end

#weightInteger

Returns:

  • (Integer)

42
43
44
# File 'lib/picasa/presenter/tag.rb', line 42

def weight
  @weight ||= map_to_integer(safe_retrieve(parsed_body, "weight"))
end