Class: ApontadorOauth2::User
- Inherits:
-
Object
- Object
- ApontadorOauth2::User
- Defined in:
- lib/apontador_oauth2/user.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ User
constructor
A new instance of User.
- #register_user_in_apontador(options) ⇒ Object
- #request(options) ⇒ Object
- #user_information ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ User
Returns a new instance of User.
4 5 6 |
# File 'lib/apontador_oauth2/user.rb', line 4 def initialize(={}) @options = end |
Instance Method Details
#register_user_in_apontador(options) ⇒ Object
13 14 15 16 |
# File 'lib/apontador_oauth2/user.rb', line 13 def register_user_in_apontador() res = request( {:path => "users", :user => }.merge(@options)) Request.json(res.body) if res.status != 201 end |