Class: ProconBypassMan::ProconDisplay::Status

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/procon_bypass_man/procon_display/status.rb

Instance Method Summary collapse

Instance Method Details

#currentHash

Returns:

  • (Hash)


5
6
7
# File 'lib/procon_bypass_man/procon_display/status.rb', line 5

def current
  @current || {}
end

#current=(value) ⇒ void

This method returns an undefined value.

NOTE: valueには参照が入ってくるので変更する時はdupすること

Parameters:

  • value (Hash)


12
13
14
15
16
17
18
# File 'lib/procon_bypass_man/procon_display/status.rb', line 12

def current=(value)
  if value.is_a?(Hash)
    @current = value
  else
    @current = nil
  end
end