class Picasa::Presenter::Media

Public Instance Methods

cover_photo_url() click to toggle source

@return [String]

# File lib/picasa/presenter/media.rb, line 12
def cover_photo_url
  return @cover_photo_url if defined?(@cover_photo_url)
  content = safe_retrieve(parsed_body, "media$content")
  @cover_photo_url = content && content[0]["url"]
end
credit() click to toggle source

@return [String]

# File lib/picasa/presenter/media.rb, line 19
def credit
  return @credit if defined?(@credit)
  content = safe_retrieve(parsed_body, "media$credit")
  @credit = content && content[0]["$t"]
end
description() click to toggle source

@return [String]

# File lib/picasa/presenter/media.rb, line 26
def description
  @description ||= safe_retrieve(parsed_body, "media$description", "$t")
end
keywords() click to toggle source

@return [String]

# File lib/picasa/presenter/media.rb, line 31
def keywords
  @keywords ||= safe_retrieve(parsed_body, "media$keywords", "$t")
end
thumbnails() click to toggle source

@return [Array<Presenter::Thumbnail>]

# File lib/picasa/presenter/media.rb, line 7
def thumbnails
  @thumbnails ||= array_wrap(safe_retrieve(parsed_body, "media$thumbnail")).map { |thumbnail| Thumbnail.new(thumbnail) }
end
title() click to toggle source

@return [String]

# File lib/picasa/presenter/media.rb, line 36
def title
  @title ||= safe_retrieve(parsed_body, "media$title", "$t")
end