Sha256: 20b482cb60e98c4f9f6428f28ae271094033b1c2451c95ee61d18bca4ffc86ec

Contents?: true

Size: 460 Bytes

Versions: 24

Compression:

Stored size: 460 Bytes

Contents

require "picasa/presenter/base"

module Picasa
  module Presenter
    class Thumbnail < Base
      # @return [String]
      def url
        @url ||= safe_retrieve(parsed_body, "url")
      end

      # @return [String]
      def width
        @width ||= map_to_integer(safe_retrieve(parsed_body, "width"))
      end

      # @return [String]
      def height
        @height ||= map_to_integer(safe_retrieve(parsed_body, "height"))
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
picasa-0.5.1 lib/picasa/presenter/thumbnail.rb
picasa-0.5.0 lib/picasa/presenter/thumbnail.rb
picasa-0.4.2 lib/picasa/presenter/thumbnail.rb
picasa-0.4.1 lib/picasa/presenter/thumbnail.rb