lib/dovico/model/employee.rb in dovico-1.0.0 vs lib/dovico/model/employee.rb in dovico-1.1.0
- old
+ new
@@ -21,7 +21,13 @@
def self.myself
employees = ApiClient.get("#{URL_PATH}/Me")
parse(employees["Employees"].first)
end
+
+ def to_s
+%{ - ID: #{id}
+ - First Name: #{first_name}
+ - Last Name: #{last_name}}
+ end
end
end