Class: BigSister::FileInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/bigsister/file_info.rb

Constant Summary collapse

PROPERTIES =
%w(name file_size).map(&:to_sym).freeze

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ FileInfo

Returns a new instance of FileInfo.



9
10
11
12
# File 'lib/bigsister/file_info.rb', line 9

def initialize(data = {})
  @name = data[:name]
  @file_size = data[:file_size]
end

Instance Method Details

#typeObject



14
15
16
# File 'lib/bigsister/file_info.rb', line 14

def type
  "file"
end