Class: Pinter::User
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ User
constructor
A new instance of User.
Methods included from Base
#set_instance_variables_from_hash
Constructor Details
#initialize(attributes) ⇒ User
Returns a new instance of User.
8 9 10 |
# File 'lib/pinter/user.rb', line 8 def initialize(attributes) set_instance_variables_from_hash attributes end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/pinter/user.rb', line 6 def created_at @created_at end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/pinter/user.rb', line 6 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/pinter/user.rb', line 6 def name @name end |