Module: HockeyModel

Extended by:
ActiveSupport::Concern
Included in:
CarmelHockey::Leader, CarmelHockey::Player, CarmelHockey::Season, CarmelHockey::Team
Defined in:
lib/hockey_model.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



11
12
13
14
15
16
# 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