# frozen_string_literal: true
module Gitlab
module FogbugzImport
class Repository
attr_accessor :raw_data
def initialize(raw_data)
@raw_data = raw_data
end
def valid?
raw_data.is_a?(Hash)
def id
raw_data['ixProject']
def name
raw_data['sProject']
def safe_name
name.gsub(/[^\s\w.-]/, '')
def path
safe_name.gsub(/[\s]/, '_')