Class: Upkeep::Replay::Template
- Inherits:
-
Object
- Object
- Upkeep::Replay::Template
- Includes:
- Payload
- Defined in:
- lib/upkeep/replay.rb
Instance Method Summary collapse
Methods included from Payload
Instance Method Details
#to_h ⇒ Object
166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/upkeep/replay.rb', line 166 def to_h payload = { type: type, controller_class: controller_class, template: template, locals: Replay.value_hash_to_h(locals) }.compact replay_assigns = Replay.value_hash_to_h(assigns) payload[:assigns] = replay_assigns if replay_assigns.any? payload end |
#type ⇒ Object
164 |
# File 'lib/upkeep/replay.rb', line 164 def type = "template" |