class Nimbu::Endpoints::Users

Public Instance Methods

me(*args) click to toggle source
# File lib/nimbu-api/endpoints/users.rb, line 7
def me(*args)
  require_authentication

  get_request("/user")
end
Also aliased as: whoami
whoami(*args)
Alias for: me

Private Instance Methods

require_authentication() click to toggle source
# File lib/nimbu-api/endpoints/users.rb, line 16
def require_authentication
  raise ArgumentError, 'You need to be authenticated to access the sites' unless authenticated?
end