Class: ScriptCore::Stat
Constant Summary collapse
- Null =
Stat.new( instructions: 0, memory: 0, bytes_in: 0, time: 0, total_instructions: 0 )
Instance Attribute Summary collapse
-
#bytes_in ⇒ Object
Returns the value of attribute bytes_in.
-
#instructions ⇒ Object
Returns the value of attribute instructions.
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#time ⇒ Object
Returns the value of attribute time.
-
#total_instructions ⇒ Object
Returns the value of attribute total_instructions.
Instance Method Summary collapse
-
#initialize(options) ⇒ Stat
constructor
A new instance of Stat.
Methods inherited from Struct
#_inspect, #dig, #each, #each_pair, #inspect, #select
Constructor Details
#initialize(options) ⇒ Stat
Returns a new instance of Stat.
5 6 7 |
# File 'lib/script_core/stat.rb', line 5 def initialize() super([:instructions], [:memory], [:bytes_in], [:time], [:total_instructions]) end |
Instance Attribute Details
#bytes_in ⇒ Object
Returns the value of attribute bytes_in
4 5 6 |
# File 'lib/script_core/stat.rb', line 4 def bytes_in @bytes_in end |
#instructions ⇒ Object
Returns the value of attribute instructions
4 5 6 |
# File 'lib/script_core/stat.rb', line 4 def instructions @instructions end |
#memory ⇒ Object
Returns the value of attribute memory
4 5 6 |
# File 'lib/script_core/stat.rb', line 4 def memory @memory end |
#time ⇒ Object
Returns the value of attribute time
4 5 6 |
# File 'lib/script_core/stat.rb', line 4 def time @time end |
#total_instructions ⇒ Object
Returns the value of attribute total_instructions
4 5 6 |
# File 'lib/script_core/stat.rb', line 4 def total_instructions @total_instructions end |