Sha256: 3d7ad67b25ea80416025baac599aeb6af1a99b4e302f1cbf6420e5e68eaac13b
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
require "picasa/presenter/base" module Picasa module Presenter class Comment < Base # @return [Presenter::Author] def author @author ||= Author.new(parsed_body["author"][0]) end # @return [Array<Presenter::Link>] def links @links ||= safe_retrieve(parsed_body, "link").map { |link| Link.new(link) } end # @return [DateTime] def published @published ||= map_to_date(safe_retrieve(parsed_body, "published")) end # @return [DateTime] def updated @updated ||= map_to_date(safe_retrieve(parsed_body, "updated")) end # @return [DateTime] def edited @edited ||= map_to_date(safe_retrieve(parsed_body, "edited")) end # @return [String] def title @title ||= safe_retrieve(parsed_body, "title") end # @return [String] def etag @etag ||= safe_retrieve(parsed_body, "gd$etag") end # @return [String] def content @content ||= safe_retrieve(parsed_body, "content", "$t") end # @return [String] def id @id ||= safe_retrieve(parsed_body, "gphoto$id") end # @return [String] def photo_id @photo_id ||= safe_retrieve(parsed_body, "gphoto$photoid") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picasa-0.6.1 | lib/picasa/presenter/comment.rb |
picasa-0.6.0 | lib/picasa/presenter/comment.rb |