lib/protolink/user.rb in protolink-0.2.6 vs lib/protolink/user.rb in protolink-0.2.7
- old
+ new
@@ -1,16 +1,18 @@
module Protolink
class User
- attr_reader :id, :name, :login, :email, :avatar_url, :external_profile_url
+ attr_reader :id, :name, :login, :email, :avatar_url, :external_profile_url, :communication_token, :node_id
def initialize(connection, attributes = {})
@connection = connection
@id = attributes['id']
@name = attributes['name']
@login = attributes['login']
@email = attributes['email']
@avatar_url = attributes['avatar_url']
+ @node_id = attributes['node_id']
@external_profile_url = attributes['external_profile_url']
+ @communication_token = attributes['communication_token']
@loaded = false
end
# get token for autologin
def auth_token
\ No newline at end of file