Class: Upkeep::Replay::Fragment
- Inherits:
-
Object
- Object
- Upkeep::Replay::Fragment
- Includes:
- Payload
- Defined in:
- lib/upkeep/replay.rb
Instance Method Summary collapse
Methods included from Payload
Instance Method Details
#to_h ⇒ Object
184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/upkeep/replay.rb', line 184 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
182 |
# File 'lib/upkeep/replay.rb', line 182 def type = "fragment" |