Class: DiskRecord::CreateDiskRecord

Inherits:
DiskRecord show all
Defined in:
service/records/disk_records.rb

Overview

Disk Created Record class

Instance Method Summary collapse

Methods inherited from DiskRecord

#sortable, #type_sym, #values

Instance Method Details

#mod(st) ⇒ Object

Increments :snaps



32
33
34
35
36
# File 'service/records/disk_records.rb', line 32

def mod st
  st[type_sym] = [] if st[type_sym].nil?
  st[type_sym] << { id: -hash, size: size, img: img }
  st
end

#sorterObject Also known as: ts

Since this is Create record sorter is 'create time'



26
27
28
# File 'service/records/disk_records.rb', line 26

def sorter
  crt
end