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.9.1 lib/picasa/presenter/thumbnail.rb
picasa-0.9.0 lib/picasa/presenter/thumbnail.rb
picasa-0.8.0 lib/picasa/presenter/thumbnail.rb
picasa-0.7.5 lib/picasa/presenter/thumbnail.rb
picasa-0.7.4 lib/picasa/presenter/thumbnail.rb
picasa-0.7.3 lib/picasa/presenter/thumbnail.rb
picasa-0.7.2 lib/picasa/presenter/thumbnail.rb
picasa-0.7.1 lib/picasa/presenter/thumbnail.rb
picasa-0.7.0 lib/picasa/presenter/thumbnail.rb
picasa-0.6.7 lib/picasa/presenter/thumbnail.rb
picasa-0.6.6 lib/picasa/presenter/thumbnail.rb
picasa-0.6.5 lib/picasa/presenter/thumbnail.rb
picasa-0.6.4 lib/picasa/presenter/thumbnail.rb
picasa-0.6.3 lib/picasa/presenter/thumbnail.rb
picasa-0.6.2 lib/picasa/presenter/thumbnail.rb
picasa-0.6.1 lib/picasa/presenter/thumbnail.rb
picasa-0.6.0 lib/picasa/presenter/thumbnail.rb
picasa-0.5.4 lib/picasa/presenter/thumbnail.rb
picasa-0.5.3 lib/picasa/presenter/thumbnail.rb
picasa-0.5.2 lib/picasa/presenter/thumbnail.rb