Class: Upkeep::Replay::ActiveRecordRelationValue

Inherits:
Object
  • Object
show all
Includes:
Value
Defined in:
lib/upkeep/replay.rb

Instance Method Summary collapse

Methods included from Value

from_h

Instance Method Details

#appendable?Boolean

Returns:

  • (Boolean)


225
226
227
# File 'lib/upkeep/replay.rb', line 225

def appendable?
  !!appendable
end

#to_hObject



229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/upkeep/replay.rb', line 229

def to_h
  {
    type: type,
    model: model,
    sql: sql,
    primary_key: primary_key,
    appendable: appendable,
    limit_value: limit_value,
    predicates: predicates,
    member_ids: member_ids
  }
end

#typeObject



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

def type = "active_record_relation"