Class: LeoFSManager::Endpoint
- Inherits:
-
Object
- Object
- LeoFSManager::Endpoint
- Defined in:
- lib/leofs_manager_client/leofs_manager_models.rb
Overview
Endpoint Model
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
When the endpoint created at.
-
#endpoint ⇒ Object
readonly
host of the endpoint.
Instance Method Summary collapse
-
#initialize(h) ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize(h) ⇒ Endpoint
Returns a new instance of Endpoint.
228 229 230 231 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 228 def initialize(h) @endpoint = h[:endpoint] @created_at = Time.parse(h[:created_at]) end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
When the endpoint created at
226 227 228 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 226 def created_at @created_at end |
#endpoint ⇒ Object (readonly)
host of the endpoint
224 225 226 |
# File 'lib/leofs_manager_client/leofs_manager_models.rb', line 224 def endpoint @endpoint end |