# File lib/vpim/address.rb, line 121
      def self.decode(field)
        adr = new(field)
        adr.uri = field.value

        cn = field.param('CN')

        if cn
          adr.cn = cn.first
        end

        role = field.param('ROLE')

        if role
          adr.role = role.first.strip.upcase
        end

        partstat = field.param('PARTSTAT')

        if partstat
          adr.partstat = partstat.first.strip.upcase
        end
        
        rsvp = field.param('RSVP')

        if rsvp
          adr.rsvp = case rsvp.first
                     when /TRUE/i then true
                     when /FALSE/i then false
                     else raise InvalidEncodingError, "RSVP param value not TRUE/FALSE: #{rsvp}"
                     end
        end

        adr.freeze
      end