module Everypolitician
  module Popolo
    class Area < Entity
      def identifiers
        document.fetch(:identifiers, [])
      end

      def name
        document.fetch(:name, nil)
      end

      def other_names
        document.fetch(:other_names, [])
      end

      def type
        document.fetch(:type, nil)
      end

      def wikidata
        identifier('wikidata')
      end
    end

    class Areas < Collection
      entity_class Area
    end
  end
end

module Everypolitician
  module Popolo
    class Area < Entity
      def identifiers
        document.fetch(:identifiers, [])
      end

      def name
        document.fetch(:name, nil)
      end

      def other_names
        document.fetch(:other_names, [])
      end

      def type
        document.fetch(:type, nil)
      end
    end

    class Areas < Collection
      entity_class Area
    end
  end
end

Remove redefinition of the wikidata method in Area
Remove redefinition of the wikidata method in Area

Since the Area class is a subclass of an Entity, and Entity defines
the identifiers method already, there is no need to redefine it in
the subclass again.
