Class: Fog::Compute::Packet::TwoFactorAuth

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/compute/packet/models/two_factor_auth.rb

Overview

TwoFactorAuth Collection

Instance Method Summary collapse

Instance Method Details

#disable(type) ⇒ Object



11
12
13
14
# File 'lib/fog/compute/packet/models/two_factor_auth.rb', line 11

def disable(type)
  response = service.disable_two_factor_auth(type)
  true if response.status == 204
end

#enable(type) ⇒ Object



6
7
8
9
# File 'lib/fog/compute/packet/models/two_factor_auth.rb', line 6

def enable(type)
  response = service.enable_two_factor_auth(type)
  true if response.status == 200
end