Class: MicrosoftLive::User
- Inherits:
-
Object
- Object
- MicrosoftLive::User
- Defined in:
- lib/microsoft-live/user.rb
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Returns the value of attribute addresses.
-
#birth_day ⇒ Object
Returns the value of attribute birth_day.
-
#birth_month ⇒ Object
Returns the value of attribute birth_month.
-
#birth_year ⇒ Object
Returns the value of attribute birth_year.
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#link ⇒ Object
Returns the value of attribute link.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#name ⇒ Object
Returns the value of attribute name.
-
#simple ⇒ Object
Returns the value of attribute simple.
-
#updated_time ⇒ Object
Returns the value of attribute updated_time.
-
#work ⇒ Object
Returns the value of attribute work.
Instance Method Summary collapse
-
#initialize(data: {}, simple:) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(data: {}, simple:) ⇒ User
20 21 22 23 24 25 |
# File 'lib/microsoft-live/user.rb', line 20 def initialize(data: {}, simple:) data.each do |key,val| self.public_send "#{key}=", val end self.simple = simple end |
Instance Attribute Details
#addresses ⇒ Object
Returns the value of attribute addresses.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def addresses @addresses end |
#birth_day ⇒ Object
Returns the value of attribute birth_day.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def birth_day @birth_day end |
#birth_month ⇒ Object
Returns the value of attribute birth_month.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def birth_month @birth_month end |
#birth_year ⇒ Object
Returns the value of attribute birth_year.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def birth_year @birth_year end |
#emails ⇒ Object
Returns the value of attribute emails.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def emails @emails end |
#first_name ⇒ Object
Returns the value of attribute first_name.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def first_name @first_name end |
#gender ⇒ Object
Returns the value of attribute gender.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def gender @gender end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def last_name @last_name end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def link @link end |
#locale ⇒ Object
Returns the value of attribute locale.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def locale @locale end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def name @name end |
#simple ⇒ Object
Returns the value of attribute simple.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def simple @simple end |
#updated_time ⇒ Object
Returns the value of attribute updated_time.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def updated_time @updated_time end |
#work ⇒ Object
Returns the value of attribute work.
4 5 6 |
# File 'lib/microsoft-live/user.rb', line 4 def work @work end |