In Elixir, you can only have methods in modules. An object is made of two groups of modules: mixins and protos. Mixins specify how the current object behaves, protos specify how the children of the current object will behave. This would be the canonical object definition in Elixir:
object Person
module Mixin
% What would be class methods in Ruby
end
module Proto
% What would be instance methods in Ruby
end