Class: Upkeep::Replay::Collection

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

#derived_partial?Boolean

Returns:

  • (Boolean)


164
165
166
# File 'lib/upkeep/replay.rb', line 164

def derived_partial?
  partial == "derived"
end

#to_hObject



168
169
170
171
172
173
174
175
176
# File 'lib/upkeep/replay.rb', line 168

def to_h
  {
    type: type,
    controller_class: controller_class,
    partial: partial,
    collection: collection.to_h,
    options: Replay.value_hash_to_h(options)
  }.compact
end

#typeObject



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

def type = "collection"