Class: ReputationIntermediateValue

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/reputation_intermediate_value.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ReputationIntermediateValue

Returns a new instance of ReputationIntermediateValue.



14
15
16
17
18
19
20
# File 'app/models/reputation_intermediate_value.rb', line 14

def initialize(*args)
  args[0] = {
    :value => 0
  }.merge(args.first || {})

  super *args
end