Class: BigSister::FileInfo
- Inherits:
-
Object
- Object
- BigSister::FileInfo
- Defined in:
- lib/bigsister/file_info.rb
Constant Summary collapse
- PROPERTIES =
%w(name file_size).map(&:to_sym).freeze
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ FileInfo
constructor
A new instance of FileInfo.
- #type ⇒ Object
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
#type ⇒ Object
14 15 16 |
# File 'lib/bigsister/file_info.rb', line 14 def type "file" end |