Class: Pinter::User

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/pinter/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (readonly)

Returns the value of attribute created_at.



6
7
8
# File 'lib/pinter/user.rb', line 6

def created_at
  @created_at
end

#emailObject (readonly)

Returns the value of attribute email.



6
7
8
# File 'lib/pinter/user.rb', line 6

def email
  @email
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/pinter/user.rb', line 6

def name
  @name
end