Class: LeoManager::Endpoint
- Inherits:
-
Object
- Object
- LeoManager::Endpoint
- Defined in:
- lib/leo_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.
317 318 319 320 |
# File 'lib/leo_manager_models.rb', line 317 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
315 316 317 |
# File 'lib/leo_manager_models.rb', line 315 def created_at @created_at end |
#endpoint ⇒ Object (readonly)
host of the endpoint
313 314 315 |
# File 'lib/leo_manager_models.rb', line 313 def endpoint @endpoint end |