<commit_before>require 'vcloud'

module Vcloud
  module EdgeGateway
    class EdgeGatewayConfiguration

      def initialize(local_config)
        @local_config = local_config
      end

      def update_required?(remote_config)
        true
      end

      def config

      end

    end
  end
end<commit_msg>Add first test and some functionality to config<commit_after>require 'vcloud'

module Vcloud
  module EdgeGateway
    class EdgeGatewayConfiguration

      def initialize(local_config)
        @local_config = local_config
      end

      def update_required?(remote_config)
        true
      end

      def config
        config = { }

        firewall_service_config = EdgeGateway::ConfigurationGenerator::FirewallService.new.generate_fog_config(@local_config[:firewall_service])
        config[:FirewallService] = firewall_service_config unless firewall_service_config.nil?

        nat_service_config = EdgeGateway::ConfigurationGenerator::NatService.new(@local_config[:gateway], @local_config[:nat_service]).generate_fog_config
        config[:NatService] = nat_service_config unless nat_service_config.nil?

        config
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.059880239520958084, 'fraction_numerical': 0.0, 'mean_word_length': 3.301470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1082029', 'n_tokens_mistral': 322, 'n_tokens_neox': 313, 'n_words': 67}