Class: UserBase
- Inherits:
-
Object
- Object
- UserBase
- Defined in:
- lib/domain/user_base.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/domain/user_base.rb', line 3 def user @user end |
Class Method Details
.json_create(o) ⇒ Object
11 12 13 14 15 |
# File 'lib/domain/user_base.rb', line 11 def self.json_create(o) a_from_json = new a_from_json.user = o['user'] a_from_json end |
Instance Method Details
#to_json(*a) ⇒ Object
5 6 7 8 9 |
# File 'lib/domain/user_base.rb', line 5 def to_json(*a) { user: @user }.to_json(*a) end |