Sha256: 361efcd8108ff41e3c9fdd537df6c2e151792addb39ef8a8125b4a57ecbfa48f

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

module TheGamesDB
  module Image
    class Boxart
      include SAXMachine

      parent :game
      value :path
      attribute :side
      attribute :width
      attribute :height

      def url
        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.0.1 lib/the_games_db/image/boxart.rb