Module: Twelve::API::Me

Included in:
Twelve
Defined in:
lib/twelve/api/me.rb

Overview

The Me module handles your information on Gauges

Instance Method Summary collapse

Instance Method Details

#me(attributes = nil) ⇒ Object

Get and Update your information, accepts attributes

attributes - Hash of attributes to update

Returns json



17
18
19
20
21
22
23
24
25
# File 'lib/twelve/api/me.rb', line 17

def me(attributes=nil)
  response = if attributes
    connection.put('/me', attributes)
  else
    connection.get('/me')
  end

  response.body['user']
end