Class: Picasa::Presenter::Content

Inherits:
Base
  • Object
show all
Defined in:
lib/picasa/presenter/content.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

#srcString

Returns:

  • (String)

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

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

#typeString

Returns:

  • (String)

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

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