Class: Remetric::UserEndpoint
- Defined in:
- lib/remetric/endpoints/user.rb
Instance Method Summary collapse
Methods inherited from Endpoint
#client, #client=, #http, #initialize
Constructor Details
This class inherits a constructor from Remetric::Endpoint
Instance Method Details
#identify(args = {}) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/remetric/endpoints/user.rb', line 3 def identify(args = {}) if args.keys.length > 0 http.patch '/', { user: args } else http.get '/' end end |