Class: MaitreD::API::Authenticated

Inherits:
Object
  • Object
show all
Includes:
Sliver::Action
Defined in:
lib/maitre_d/api/authenticated.rb

Direct Known Subclasses

ChangePlan, Create, Delete

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.guardsObject



4
5
6
# File 'lib/maitre_d/api/authenticated.rb', line 4

def self.guards
  [MaitreD::API::AuthenticationGuard]
end

Instance Method Details

#callObject



8
9
10
11
# File 'lib/maitre_d/api/authenticated.rb', line 8

def call
  response.body     = [MultiJson.dump(response.body)]
  response.status ||= 200
end

#configurationObject



13
14
15
# File 'lib/maitre_d/api/authenticated.rb', line 13

def configuration
  environment['maitre_d.configuration']
end