Class: Komonjo::Model::Profile

Inherits:
Object
  • Object
show all
Includes:
Extension::ToJson
Defined in:
lib/komonjo/models/profile.rb

Overview

slack User.profile

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Extension::ToJson

#to_json

Instance Attribute Details

#emailObject

Returns the value of attribute email.



7
8
9
# File 'lib/komonjo/models/profile.rb', line 7

def email
  @email
end

#first_nameObject

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_192Object

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_24Object

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_32Object

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_48Object

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_72Object

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_nameObject

Returns the value of attribute last_name.



7
8
9
# File 'lib/komonjo/models/profile.rb', line 7

def last_name
  @last_name
end

#phoneObject

Returns the value of attribute phone.



7
8
9
# File 'lib/komonjo/models/profile.rb', line 7

def phone
  @phone
end

#real_nameObject

Returns the value of attribute real_name.



7
8
9
# File 'lib/komonjo/models/profile.rb', line 7

def real_name
  @real_name
end

#skypeObject

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