Class: Upkeep::Replay::Template

Inherits:
Object
  • Object
show all
Includes:
Payload
Defined in:
lib/upkeep/replay.rb

Instance Method Summary collapse

Methods included from Payload

empty?, from_h

Instance Method Details

#to_hObject



134
135
136
137
138
139
140
141
# File 'lib/upkeep/replay.rb', line 134

def to_h
  {
    type: type,
    controller_class: controller_class,
    template: template,
    locals: Replay.value_hash_to_h(locals)
  }.compact
end

#typeObject



132
# File 'lib/upkeep/replay.rb', line 132

def type = "template"