module HockeyModel

Public Instance Methods

attributes() click to toggle source
# File lib/hockey_model.rb, line 11
def attributes
  instance_variables.each_with_object({}) do |name, h|
    name = name[1..-1]
    h[name] = send(name)
  end
end