Class: HubIdentityRuby::CurrentUser
- Inherits:
-
Object
- Object
- HubIdentityRuby::CurrentUser
- Defined in:
- app/models/hub_identity_ruby/current_user.rb
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(json_params) ⇒ CurrentUser
constructor
A new instance of CurrentUser.
Constructor Details
#initialize(json_params) ⇒ CurrentUser
Returns a new instance of CurrentUser.
4 5 6 7 8 9 10 11 |
# File 'app/models/hub_identity_ruby/current_user.rb', line 4 def initialize(json_params) user_params = parse(json_params) @email = user_params["email"] @owner_type = user_params["owner_type"] @owner_uid = user_params["owner_uid"] @user_type = user_params["user_type"] @uid = user_params["uid"] end |
Instance Method Details
#hash ⇒ Object
13 14 15 |
# File 'app/models/hub_identity_ruby/current_user.rb', line 13 def hash hash_values if valid? end |