Class: Komonjo::Model::Profile
- Inherits:
-
Object
- Object
- Komonjo::Model::Profile
- Includes:
- Extension::ToJson
- Defined in:
- lib/komonjo/models/profile.rb
Overview
slack User.profile
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#image_192 ⇒ Object
Returns the value of attribute image_192.
-
#image_24 ⇒ Object
Returns the value of attribute image_24.
-
#image_32 ⇒ Object
Returns the value of attribute image_32.
-
#image_48 ⇒ Object
Returns the value of attribute image_48.
-
#image_72 ⇒ Object
Returns the value of attribute image_72.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#real_name ⇒ Object
Returns the value of attribute real_name.
-
#skype ⇒ Object
Returns the value of attribute skype.
Class Method Summary collapse
Methods included from Extension::ToJson
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def first_name @first_name end |
#image_192 ⇒ Object
Returns the value of attribute image_192.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def image_192 @image_192 end |
#image_24 ⇒ Object
Returns the value of attribute image_24.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def image_24 @image_24 end |
#image_32 ⇒ Object
Returns the value of attribute image_32.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def image_32 @image_32 end |
#image_48 ⇒ Object
Returns the value of attribute image_48.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def image_48 @image_48 end |
#image_72 ⇒ Object
Returns the value of attribute image_72.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def image_72 @image_72 end |
#last_name ⇒ Object
Returns the value of attribute last_name.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def last_name @last_name end |
#phone ⇒ Object
Returns the value of attribute phone.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def phone @phone end |
#real_name ⇒ Object
Returns the value of attribute real_name.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def real_name @real_name end |
#skype ⇒ Object
Returns the value of attribute skype.
7 8 9 |
# File 'lib/komonjo/models/profile.rb', line 7 def skype @skype end |
Class Method Details
.create(hash) ⇒ Object
10 11 12 |
# File 'lib/komonjo/models/profile.rb', line 10 def self.create(hash) new.tap { |e| hash.each { |k, v| e.instance_variable_set("@#{k}", v) } } end |