# File lib/simple_oauth/header.rb, line 22
    def self.parse(header)
      header.to_s.sub(/^OAuth\s/, '').split(', ').inject({}) do |attributes, pair|
        match = pair.match(/^(\w+)\=\"([^\"]*)\"$/)
        attributes.merge(match[1].sub(/^oauth_/, '').to_sym => decode(match[2]))
      end
    end