Class: RoCommands::Info::RoFile

Inherits:
Object
  • Object
show all
Defined in:
lib/ro_commands/info.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, size) ⇒ RoFile

Returns a new instance of RoFile.



9
10
11
12
# File 'lib/ro_commands/info.rb', line 9

def initialize(path, size)
  @path = path
  @size = size
end

Instance Method Details

#pathObject



14
15
16
# File 'lib/ro_commands/info.rb', line 14

def path
	@path ||= nil
end

#sizeObject



18
19
20
# File 'lib/ro_commands/info.rb', line 18

def size
	@size ||= nil
end

#to_sObject



22
23
24
# File 'lib/ro_commands/info.rb', line 22

def to_s
  "size:#{(size/1024)}kb, path:#{path}"
end