Class: Hpe3parSdk::TaskStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/Hpe3parSdk/constants.rb

Overview

This class enumerates the statuses that a Task can have.

Constant Summary collapse

DONE =
1
ACTIVE =
2
CANCELLED =
3
FAILED =
4

Class Method Summary collapse

Class Method Details

.get_string(val) ⇒ Object



304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
# File 'lib/Hpe3parSdk/constants.rb', line 304

def self.get_string(val)
  case val
    when 1
      return 'DONE'
    when 2
      return 'ACTIVE'
    when 3
      return 'CANCELLED'
    when 4
      return 'FAILED'
    else
      raise 'Unknown value'
  end

end