module Massager::InstanceMethods

Public Instance Methods

[](name) click to toggle source
# File lib/massager.rb, line 14
def [](name)
  public_send(name)
end
to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/massager.rb, line 18
def to_hash
  self.class._container.keys.select {|a| a.include?("attributes.")}.each_with_object({}) do |key, result|
    attribute_name = key.gsub("attributes.", "").to_sym
    result[attribute_name] = Hashify[self[attribute_name]]
  end
end
Also aliased as: to_h