Class: Tagstand::User
- Inherits:
-
Object
- Object
- Tagstand::User
- Defined in:
- lib/tagstand/user.rb
Overview
Represents a user
Class Method Summary collapse
-
.create(email, pwd = nil) ⇒ Object
TODO: document this method TODO: POST body causing error.
-
.key(email, pwd) ⇒ Object
TODO: document this method.
Class Method Details
.create(email, pwd = nil) ⇒ Object
TODO: document this method TODO: POST body causing error
11 12 13 14 15 16 17 18 |
# File 'lib/tagstand/user.rb', line 11 def create(email, pwd=nil) = {query: {api_key: Tagstand.api_key}} user = {email: email} user.merge!(password: pwd) if pwd .merge!(body: "user=#{user.to_json}") response = Tagstand.post "/user_create", Hashie::Mash.new(response) end |