class Grape::Util::LazyValueHash
Public Class Methods
new(hash)
click to toggle source
Calls superclass method
Grape::Util::LazyValue::new
# File lib/grape/util/lazy_value.rb, line 82 def initialize(hash) super @value_hash = {}.with_indifferent_access hash.each do |key, value| self[key] = value end end
Public Instance Methods
evaluate()
click to toggle source
# File lib/grape/util/lazy_value.rb, line 90 def evaluate evaluated = {}.with_indifferent_access @value_hash.each do |key, value| evaluated[key] = value.evaluate end evaluated end