Sha256: 21244c4767da8e02bc5a65093b7eb5fe6c582c80d3cdc5c4e3ab17bdeeb87930
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
require "picasa/presenter/base" module Picasa module Presenter class Tag < Base # @return [Presenter::Author] def author @author ||= Author.new(safe_retrieve(parsed_body, "author")) end # @return [Array<Presenter::Link>] def links @links ||= array_wrap(safe_retrieve(parsed_body, "link")).map { |link| Link.new(link) } end # @return [DateTime] def updated @updated ||= map_to_date(safe_retrieve(parsed_body, "updated")) end # @return [String] def title @title ||= safe_retrieve(parsed_body, "title") end # @return [String] def etag @etag ||= safe_retrieve(parsed_body, "etag") end # @return [String] def summary @summary ||= safe_retrieve(parsed_body, "summary") end # @return [String] def id @id ||= safe_retrieve(parsed_body, "id") end # @return [Integer] def weight @weight ||= map_to_integer(safe_retrieve(parsed_body, "weight")) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems