Class: MemoryProfiler::Stat
- Inherits:
-
Object
- Object
- MemoryProfiler::Stat
- Defined in:
- lib/memory_profiler/stat.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#gem ⇒ Object
readonly
Returns the value of attribute gem.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#memsize ⇒ Object
readonly
Returns the value of attribute memsize.
-
#string_value ⇒ Object
readonly
Returns the value of attribute string_value.
Instance Method Summary collapse
-
#initialize(class_name, gem, file, location, memsize, string_value) ⇒ Stat
constructor
A new instance of Stat.
Constructor Details
#initialize(class_name, gem, file, location, memsize, string_value) ⇒ Stat
Returns a new instance of Stat.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/memory_profiler/stat.rb', line 8 def initialize(class_name, gem, file, location, memsize, string_value) @class_name = class_name @gem = gem @file = file @location = location @memsize = memsize @string_value = string_value end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
6 7 8 |
# File 'lib/memory_profiler/stat.rb', line 6 def class_name @class_name end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
6 7 8 |
# File 'lib/memory_profiler/stat.rb', line 6 def file @file end |
#gem ⇒ Object (readonly)
Returns the value of attribute gem.
6 7 8 |
# File 'lib/memory_profiler/stat.rb', line 6 def gem @gem end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/memory_profiler/stat.rb', line 6 def location @location end |
#memsize ⇒ Object (readonly)
Returns the value of attribute memsize.
6 7 8 |
# File 'lib/memory_profiler/stat.rb', line 6 def memsize @memsize end |
#string_value ⇒ Object (readonly)
Returns the value of attribute string_value.
6 7 8 |
# File 'lib/memory_profiler/stat.rb', line 6 def string_value @string_value end |