Module: GraphitiGql::StatsExtras

Defined in:
lib/graphiti_gql/graphiti_hax.rb

Instance Method Summary collapse

Instance Method Details

#calculate_stat(name, function) ⇒ Object



337
338
339
340
341
# File 'lib/graphiti_gql/graphiti_hax.rb', line 337

def calculate_stat(name, function)
  config = @resource.all_attributes[name] || {}
  name = config[:alias] || name
  super(name, function)
end