Class: Cassia::ResponseHandlers::CloseApState

Inherits:
Object
  • Object
show all
Defined in:
lib/cassia/response_handlers/close_ap_state.rb

Instance Method Summary collapse

Constructor Details

#initialize(access_controller) ⇒ CloseApState

Returns a new instance of CloseApState.



4
5
6
# File 'lib/cassia/response_handlers/close_ap_state.rb', line 4

def initialize(access_controller)
  @access_controller = access_controller
end

Instance Method Details

#handle(response) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/cassia/response_handlers/close_ap_state.rb', line 8

def handle(response)
  if response.success?
    handle_success
  else
    handle_failure(response)
  end
  response.success?
end