Class: Dobedobedo::User
- Inherits:
-
Object
- Object
- Dobedobedo::User
- Includes:
- ObjToJson
- Defined in:
- lib/dobedobedo/user.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, workspace_id, h) ⇒ User
constructor
A new instance of User.
Methods included from ObjToJson
#objToJson, #obj_to_json, #obj_to_json2
Constructor Details
#initialize(token, workspace_id, h) ⇒ User
Returns a new instance of User.
7 8 9 10 11 12 13 14 |
# File 'lib/dobedobedo/user.rb', line 7 def initialize(token, workspace_id, h) @token = token @workspace_id = workspace_id h.each do |k,v| User.send(:attr_accessor, k.to_sym) self.send("#{k}=".to_sym, v) end end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/dobedobedo/user.rb', line 5 def token @token end |