Class: Nis::Struct::NemAsyncTimerVisitor

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/nem_async_timer_visitor.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#average_operation_timeString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def average_operation_time
  @average_operation_time
end

#executionsString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def executions
  @executions
end

#failuresString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def failures
  @failures
end

#is_executingString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def is_executing
  @is_executing
end

#last_delay_timeString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def last_delay_time
  @last_delay_time
end

#last_operation_start_timeString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def last_operation_start_time
  @last_operation_start_time
end

#last_operation_timeString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def last_operation_time
  @last_operation_time
end

#nameString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def name
  @name
end

#successesString


12
13
14
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 12

def successes
  @successes
end

Class Method Details

.build(attrs) ⇒ Object


16
17
18
19
20
21
22
23
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 16

def self.build(attrs)
  attrs[:last_delay_time] = attrs[:'last-delay-time']
  attrs[:last_operation_start_time] = attrs[:'last-operation-start-time']
  attrs[:is_executing] = attrs[:'is-executing']
  attrs[:average_operation_time] = attrs[:'average-operation-time']
  attrs[:last_operation_time] = attrs[:'last-operation-time']
  new(attrs)
end

Instance Method Details

#executing?Boolean


26
27
28
# File 'lib/nis/struct/nem_async_timer_visitor.rb', line 26

def executing?
  @is_executing == 1
end