Class: Feathr::Api::Users
- Inherits:
-
FeathrEndpoint
- Object
- FeathrEndpoint
- Feathr::Api::Users
- Defined in:
- lib/feathr/api/users.rb
Instance Attribute Summary
Attributes inherited from FeathrEndpoint
Instance Method Summary collapse
Methods inherited from FeathrEndpoint
api_path, define_all, define_create, define_destroy, define_find, define_update, feathr_endpoints, feathr_object, #initialize
Constructor Details
This class inherits a constructor from Feathr::Api::FeathrEndpoint
Instance Method Details
#me ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/feathr/api/users.rb', line 9 def me path = api_path + 'me' response = client.request(method: :get, path: path) do |data| id = data["url"][/\/(\d*)\/$/, 1] feathr_object.new(data, id) end end |