Class: Apiddress::HealthResponse
- Inherits:
-
Data
- Object
- Data
- Apiddress::HealthResponse
- Defined in:
- lib/apiddress/models.rb
Overview
Service health payload.
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status
171 172 173 |
# File 'lib/apiddress/models.rb', line 171 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp
171 172 173 |
# File 'lib/apiddress/models.rb', line 171 def @timestamp end |
#version ⇒ Object (readonly)
Returns the value of attribute version
171 172 173 |
# File 'lib/apiddress/models.rb', line 171 def version @version end |
Class Method Details
.from_hash(data) ⇒ Object
172 173 174 175 176 177 178 |
# File 'lib/apiddress/models.rb', line 172 def self.from_hash(data) new( status: data["status"], timestamp: data["timestamp"], version: data["version"], ) end |