Sha256: cf2bdbe3f0e8941cfa7d2dc6ac60ed48b6033a1280a7be901f2d492af11e31b2

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

module TheGamesDB
  module Image
    class Format
      include SAXMachine

      ancestor :image
      value :path
      attribute :width
      attribute :height

      def url
        image.game.feed.base_image_url + path
      end

      def width
        @width.to_i
      end

      def height
        @height.to_i
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
the_games_db-0.1.0 lib/the_games_db/image/format.rb