Class: Fog::DNS::Dynect::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/dns/dynect.rb,
lib/fog/dns/requests/dynect/post_session.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



28
29
30
31
32
# File 'lib/fog/dns/dynect.rb', line 28

def initialize(options={})
  @dynect_customer = options[:dynect_customer]
  @dynect_username = options[:dynect_username]
  @dynect_password = options[:dynect_password]
end

Instance Method Details

#post_sessionObject



22
23
24
25
26
27
28
29
30
# File 'lib/fog/dns/requests/dynect/post_session.rb', line 22

def post_session
  response = Excon::Response.new
  response.status = 200
  response.body = {
    'API-Version' => '2.3.1',
    'Auth-Token' => 'thetoken=='
  }
  response
end