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)


179
180
181
# File 'lib/upkeep/replay.rb', line 179

def derived_partial?
  partial == "derived"
end

#to_hObject



183
184
185
186
187
188
189
190
191
# File 'lib/upkeep/replay.rb', line 183

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



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

def type = "collection"