def fetch
      if (self.url)
        html = open(self.url).read
        dom = Nokogiri::HTML.fragment(html)

        description = dom.css('#description').first

        # Remove "All missions" link
        users = dom.css('#main_column a')[0..-2].map do |user_link|
          User.new(
            "user_id" => user_link.text.strip,
            "url" => URI.join(self.url, user_link.attr('href')).to_s,
          )
        end

        mission = {
          "title" => dom.css('h1').first.text.strip,
          "description" => description.text.strip,
          "description_long" => description.next.text.strip,

          "users" => users,
          "users_count" => users.count
        }

        self.merge!(mission)
      end

      self
    end
def fetch
      if (self.url)
        html = open(self.url).read
        dom = Nokogiri::HTML.fragment(html)

        description = dom.css('#description').first

        # Remove "All missions" link
        users = dom.css('#main_column a')[0..-2].map do |user_link|
          User.new(
            "user_id" => user_link.text.strip,
            "url" => URI.join(self.url, user_link.attr('href')).to_s,
          )
        end

        mission = {
          "title" => dom.css('h1').first.text.strip,
          "description" => description.text.strip,
          "description_long" => description.next.text.strip,

          "users" => users,
          "users_count" => users.count
        }

        self.merge!(mission)
      end

      self
    end
Fetch mission