Class: Raas::SystemStatusResponseModel
- Defined in:
- lib/raas/models/system_status_response_model.rb
Overview
Represents the response returned from the status endpoint
Instance Attribute Summary collapse
-
#status ⇒ String
The status of the system.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
Instance Method Summary collapse
-
#initialize(status = nil) ⇒ SystemStatusResponseModel
constructor
A new instance of SystemStatusResponseModel.
Methods inherited from BaseModel
Constructor Details
#initialize(status = nil) ⇒ SystemStatusResponseModel
Returns a new instance of SystemStatusResponseModel.
18 19 20 |
# File 'lib/raas/models/system_status_response_model.rb', line 18 def initialize(status = nil) @status = status end |
Instance Attribute Details
#status ⇒ String
The status of the system
9 10 11 |
# File 'lib/raas/models/system_status_response_model.rb', line 9 def status @status end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
23 24 25 26 27 28 29 30 31 |
# File 'lib/raas/models/system_status_response_model.rb', line 23 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. status = hash['status'] # Create object from extracted values. SystemStatusResponseModel.new(status) end |
.names ⇒ Object
A mapping from model property names to API property names.
12 13 14 15 16 |
# File 'lib/raas/models/system_status_response_model.rb', line 12 def self.names @_hash = {} if @_hash.nil? @_hash['status'] = 'status' @_hash end |