Class: Daytona::Volume
- Inherits:
-
Object
- Object
- Daytona::Volume
- Defined in:
- lib/daytona/volume.rb
Instance Attribute Summary collapse
- #created_at ⇒ String readonly
- #error_reason ⇒ String? readonly
- #id ⇒ String readonly
- #last_used_at ⇒ String readonly
- #name ⇒ String readonly
- #organization_id ⇒ String readonly
- #state ⇒ String readonly
- #updated_at ⇒ String readonly
Instance Method Summary collapse
-
#initialize(volume_dto) ⇒ Volume
constructor
Initialize volume from DTO.
Constructor Details
#initialize(volume_dto) ⇒ Volume
Initialize volume from DTO
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/daytona/volume.rb', line 32 def initialize(volume_dto) @id = volume_dto.id @name = volume_dto.name @organization_id = volume_dto.organization_id @state = volume_dto.state @created_at = volume_dto.created_at @updated_at = volume_dto.updated_at @last_used_at = volume_dto.last_used_at @error_reason = volume_dto.error_reason end |
Instance Attribute Details
#created_at ⇒ String (readonly)
18 19 20 |
# File 'lib/daytona/volume.rb', line 18 def created_at @created_at end |
#error_reason ⇒ String? (readonly)
27 28 29 |
# File 'lib/daytona/volume.rb', line 27 def error_reason @error_reason end |
#id ⇒ String (readonly)
6 7 8 |
# File 'lib/daytona/volume.rb', line 6 def id @id end |
#last_used_at ⇒ String (readonly)
24 25 26 |
# File 'lib/daytona/volume.rb', line 24 def last_used_at @last_used_at end |
#name ⇒ String (readonly)
9 10 11 |
# File 'lib/daytona/volume.rb', line 9 def name @name end |
#organization_id ⇒ String (readonly)
12 13 14 |
# File 'lib/daytona/volume.rb', line 12 def organization_id @organization_id end |
#state ⇒ String (readonly)
15 16 17 |
# File 'lib/daytona/volume.rb', line 15 def state @state end |
#updated_at ⇒ String (readonly)
21 22 23 |
# File 'lib/daytona/volume.rb', line 21 def updated_at @updated_at end |