Sha256: e9f311bd45d478c0db43576269d1b71e2a2f36f01ad291105133ac5997da8d7a

Contents?: true

Size: 401 Bytes

Versions: 37

Compression:

Stored size: 401 Bytes

Contents

module PageObject
  module Elements
    class Canvas < Element
      #
      # return the width of the canvas
      #
      def width
        attribute(:width).to_i
      end

      #
      # return the height of the canvas
      #
      def height
        attribute(:height).to_i
      end
      
    end
    ::PageObject::Elements.type_to_class[:canvas] = ::PageObject::Elements::Canvas
  end
end

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
page-object-0.8.9 lib/page-object/elements/canvas.rb
page-object-0.8.8 lib/page-object/elements/canvas.rb
page-object-0.8.7 lib/page-object/elements/canvas.rb
page-object-0.8.6.1 lib/page-object/elements/canvas.rb
page-object-0.8.6 lib/page-object/elements/canvas.rb
page-object-0.8.5 lib/page-object/elements/canvas.rb
page-object-0.8.4 lib/page-object/elements/canvas.rb
page-object-0.8.3 lib/page-object/elements/canvas.rb
page-object-0.8.2 lib/page-object/elements/canvas.rb
page-object-0.8.1 lib/page-object/elements/canvas.rb
page-object-0.8 lib/page-object/elements/canvas.rb
page-object-0.7.6 lib/page-object/elements/canvas.rb
page-object-0.7.5.1 lib/page-object/elements/canvas.rb
page-object-0.7.5 lib/page-object/elements/canvas.rb
page-object-0.7.4 lib/page-object/elements/canvas.rb
page-object-0.7.3 lib/page-object/elements/canvas.rb
page-object-0.7.2 lib/page-object/elements/canvas.rb