Class: Picasa::Presenter::Link

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

#hrefString


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

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

#relString


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

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

#typeString


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

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