class JustimmoClient::V1::Employee
Public Instance Methods
full_name(surname_first: false, with_salutation: true)
click to toggle source
# File lib/justimmo_client/api/v1/models/employee.rb, line 41 def full_name(surname_first: false, with_salutation: true) name = [first_name, last_name] name.reverse! if surname_first name.unshift(salutation) if with_salutation name.compact.join(" ") end
image(index = 0)
click to toggle source
# File lib/justimmo_client/api/v1/models/employee.rb, line 35 def image(index = 0) images[index] end
Also aliased as: picture
images()
click to toggle source
@!group Instance Method Summary
# File lib/justimmo_client/api/v1/models/employee.rb, line 29 def images attachments.select { |x| x.type == "pic" } end
Also aliased as: pictures
to_s()
click to toggle source
# File lib/justimmo_client/api/v1/models/employee.rb, line 48 def to_s full_name end