fog/fog-google

View on GitHub
lib/fog/dns/google/real.rb

Summary

Maintainability
A
35 mins
Test Coverage
module Fog
  module DNS
    class Google
      class Real
        include Fog::Google::Shared

        attr_reader :dns

        def initialize(options)
          shared_initialize(options[:google_project], GOOGLE_DNS_API_VERSION, GOOGLE_DNS_BASE_URL)
          options[:google_api_scope_url] = GOOGLE_DNS_API_SCOPE_URLS.join(" ")
          initialize_google_client(options)
          @dns = ::Google::Apis::DnsV1::DnsService.new
          apply_client_options(@dns, options)
        end
      end
    end
  end
end