Liking cljdoc? Tell your friends :D

hub.user.client.util

Client Helpers

Client Helpers
raw docstring

display-nameclj

(display-name user-doc)

Inputs: [user-doc :- as/User] Returns: (s/maybe (s/either as/FullName as/UserName))

Takes in a user-doc or username and returns the user's full name, or username if the name hasn't been input yet.

Inputs: [user-doc :- as/User]
Returns: (s/maybe (s/either as/FullName as/UserName))

Takes in a user-doc or username and returns the user's full name,
  or username if the name hasn't been input yet.
raw docstring

emailclj

(email user-doc)

Inputs: [user-doc :- as/User] Returns: (s/maybe s/Str)

If the supplied user's valid, returns the email address.

Inputs: [user-doc :- as/User]
Returns: (s/maybe s/Str)

If the supplied user's valid, returns the email address.
raw docstring

get-dob-strclj

(get-dob-str user-doc)

Inputs: [user-doc :- as/User] Returns: (s/maybe s/Str)

Returns date of birth as a string mm/dd/yyyy

Inputs: [user-doc :- as/User]
Returns: (s/maybe s/Str)

Returns date of birth as a string mm/dd/yyyy
raw docstring

profileclj

(profile user-doc)

Inputs: [user-doc :- as/User] Returns: (s/maybe as/Profile)

If the supplied user's valid, returns the profile.

Inputs: [user-doc :- as/User]
Returns: (s/maybe as/Profile)

If the supplied user's valid, returns the profile.
raw docstring

publish!clj

(publish! topic m)

Publishes the given topic / payload and returns the payload.

Publishes the given topic / payload and returns the payload.
raw docstring

super-admin?clj

(super-admin? user-doc)

Inputs: [user-doc :- as/User] Returns: s/Bool

Inputs: [user-doc :- as/User]
Returns: s/Bool
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close