Class: Fog::DNS::Dynect::Mock
- Inherits:
-
Object
- Object
- Fog::DNS::Dynect::Mock
- Defined in:
- lib/fog/dns/dynect.rb,
lib/fog/dns/requests/dynect/post_session.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #post_session ⇒ Object
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(={}) @dynect_customer = [:dynect_customer] @dynect_username = [:dynect_username] @dynect_password = [:dynect_password] end |
Instance Method Details
#post_session ⇒ Object
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 |