class BigResources::FileInfoModel

Attributes

file_name[RW]
file_path[RW]
total_count[RW]

Public Class Methods

new(file_name) click to toggle source
# File lib/big_resources/model/file_model.rb, line 5
def initialize(file_name)
  @file_path = []
  @total_count = 0
  @file_name = file_name
end

Public Instance Methods

add_file_path(file_path) click to toggle source
# File lib/big_resources/model/file_model.rb, line 11
def add_file_path(file_path)
  if file_path.length > 0
    @file_path << file_path
    @total_count += 1
  end
end