Sha256: 83c944cf8abc1d947b4880b6e35368287c5949c6124e3728bfad3b1d63ed6d28

Contents?: true

Size: 381 Bytes

Versions: 7

Compression:

Stored size: 381 Bytes

Contents

module PageObject
  module Elements
    class Video < Media

      def height
        height = attribute(:height)
        return height.to_i if height
      end

      def width
        width = attribute(:width)
        return width.to_i if width
      end
      
    end
    ::PageObject::Elements.type_to_class[:video] = ::PageObject::Elements::Video
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
page-object-lds-0.0.14 lib/page-object/elements/video.rb
page-object-lds-0.0.13 lib/page-object/elements/video.rb
page-object-lds-0.0.12 lib/page-object/elements/video.rb
page-object-lds-0.0.11 lib/page-object/elements/video.rb
page-object-lds-0.0.1 lib/page-object/elements/video.rb
meeane-page-object-0.1.10 lib/page-object/elements/video.rb
meeane-page-object-0.1.8 lib/page-object/elements/video.rb