Class: Stytch::Project
- Inherits:
-
Object
- Object
- Stytch::Project
- Includes:
- RequestHelper
- Defined in:
- lib/stytch/project.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ Project
constructor
A new instance of Project.
- #metrics ⇒ Object
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
#metrics ⇒ Object
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 |