Class: Miu::Resources::User
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ User
constructor
A new instance of User.
- #to_h ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ User
Returns a new instance of User.
8 9 10 |
# File 'lib/miu/resources/user.rb', line 8 def initialize( = {}) @name = [:name] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/miu/resources/user.rb', line 6 def name @name end |
Instance Method Details
#to_h ⇒ Object
12 13 14 |
# File 'lib/miu/resources/user.rb', line 12 def to_h super.merge({:name => @name}) end |