Class: Picasa::Presenter::Thumbnail

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

#heightString


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

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

#urlString


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

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

#widthString


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

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