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)


202
203
204
# File 'lib/upkeep/replay.rb', line 202

def derived_partial?
  partial == "derived"
end

#to_hObject



206
207
208
209
210
211
212
213
214
# File 'lib/upkeep/replay.rb', line 206

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



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

def type = "collection"