Class: Stytch::Project

Inherits:
Object
  • Object
show all
Includes:
RequestHelper
Defined in:
lib/stytch/project.rb

Instance Method Summary collapse

Methods included from RequestHelper

#delete_request, #get_request, #post_request, #put_request, #request_with_query_params

Constructor Details

#initialize(connection) ⇒ Project

Returns a new instance of Project.



15
16
17
# File 'lib/stytch/project.rb', line 15

def initialize(connection)
  @connection = connection
end

Instance Method Details

#metricsObject



19
20
21
22
23
24
# File 'lib/stytch/project.rb', line 19

def metrics
  headers = {}
  query_params = {}
  request = request_with_query_params('/v1/projects/metrics', query_params)
  get_request(request, headers)
end