struct FilesBatch

Defined in:

crawler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(batch_size : Int32) #

[View source]

Instance Method Detail

def batch_size : Int32 #

[View source]
def batch_size=(batch_size : Int32) #

[View source]
def files : Array(String) #

[View source]
def files=(files : Array(String)) #

[View source]
def files_count : Int32 #

[View source]
def files_count=(files_count : Int32) #

[View source]
def full? #

Batch is full or not depending on the Batch Size

batch = FilesBatch.new(2)
batch.files << "file1"
batch.files << "file2"
puts batch.full? # Returns true

[View source]
def hardlinks : Hash(UInt64, Array(String)) #

[View source]
def hardlinks=(hardlinks : Hash(UInt64, Array(String))) #

[View source]
def stime_update_dirs : Array(String) #

[View source]
def stime_update_dirs=(stime_update_dirs : Array(String)) #

[View source]