Class: Butterfly::User
- Inherits:
-
Object
- Object
- Butterfly::User
- Defined in:
- lib/butterfly/user.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#photo_url ⇒ Object
Returns the value of attribute photo_url.
-
#service_url ⇒ Object
Returns the value of attribute service_url.
-
#username ⇒ Object
Returns the value of attribute username.
-
#website_url ⇒ Object
Returns the value of attribute website_url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(attributes = {}) ⇒ User
Returns a new instance of User.
12 13 14 15 16 |
# File 'lib/butterfly/user.rb', line 12 def initialize(attributes = {}) attributes.each_pair do |key, value| self.send("#{key}=", value) end end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def name @name end |
#photo_url ⇒ Object
Returns the value of attribute photo_url.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def photo_url @photo_url end |
#service_url ⇒ Object
Returns the value of attribute service_url.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def service_url @service_url end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def username @username end |
#website_url ⇒ Object
Returns the value of attribute website_url.
4 5 6 |
# File 'lib/butterfly/user.rb', line 4 def website_url @website_url end |