Class: MicrosoftLive::User

Inherits:
Object
  • Object
show all
Defined in:
lib/microsoft-live/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressesObject

Returns the value of attribute addresses.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def addresses
  @addresses
end

#birth_dayObject

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_monthObject

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_yearObject

Returns the value of attribute birth_year.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def birth_year
  @birth_year
end

#emailsObject

Returns the value of attribute emails.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def emails
  @emails
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def first_name
  @first_name
end

#genderObject

Returns the value of attribute gender.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def gender
  @gender
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def last_name
  @last_name
end

Returns the value of attribute link.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def link
  @link
end

#localeObject

Returns the value of attribute locale.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def locale
  @locale
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def name
  @name
end

#simpleObject

Returns the value of attribute simple.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def simple
  @simple
end

#updated_timeObject

Returns the value of attribute updated_time.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def updated_time
  @updated_time
end

#workObject

Returns the value of attribute work.



4
5
6
# File 'lib/microsoft-live/user.rb', line 4

def work
  @work
end