Class: Picasa::Presenter::Thumbnail
- Inherits:
-
Base
- Object
- Base
- Picasa::Presenter::Thumbnail
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
Instance Method Details
#height ⇒ String
17
18
19
|
# File 'lib/picasa/presenter/thumbnail.rb', line 17
def height
@height ||= map_to_integer(safe_retrieve(parsed_body, "height"))
end
|
#url ⇒ String
7
8
9
|
# File 'lib/picasa/presenter/thumbnail.rb', line 7
def url
@url ||= safe_retrieve(parsed_body, "url")
end
|
#width ⇒ String
12
13
14
|
# File 'lib/picasa/presenter/thumbnail.rb', line 12
def width
@width ||= map_to_integer(safe_retrieve(parsed_body, "width"))
end
|