Sha256: 0b473a723a344df3815f589e5bd295802cf9de11726c79c2bd62e052043c603c

Contents?: true

Size: 463 Bytes

Versions: 9

Compression:

Stored size: 463 Bytes

Contents

module Druid
  module Elements
    class Area < Element

      #
      # Return the coordinates of the area
      #
      def coords
        attribute(:coords)
      end

      #
      # Return the shape of the area
      #
      def shape
        attribute(:shape)
      end

      #
      # Return the href of the area
      #
      def href
        attribute(:href)
      end
    end

    Druid::Elements.type_to_class[:area] = Druid::Elements::Area
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
druid-ts-1.2.4 lib/druid/elements/area.rb
druid-ts-1.2.3 lib/druid/elements/area.rb
druid-ts-1.2.2 lib/druid/elements/area.rb
druid-ts-1.2.1 lib/druid/elements/area.rb
druid-ts-1.2.0 lib/druid/elements/area.rb
druid-ts-1.1.8 lib/druid/elements/area.rb
druid-ts-1.1.7 lib/druid/elements/area.rb
druid-ts-1.1.6 lib/druid/elements/area.rb
druid-ts-1.1.5 lib/druid/elements/area.rb