---
title: "Volume"
hideTitleOnPage: true
---

## Volume

Initialize volume from DTO

### Constructors

#### new Volume()

```ruby
def initialize(volume_dto)

```

Initialize volume from DTO

**Parameters**:

- `volume_dto` _DaytonaApiClient:SandboxVolume_ -

**Returns**:

- `Volume` - a new instance of Volume

### Methods

#### id()

```ruby
def id()

```

**Returns**:

- `String`

#### name()

```ruby
def name()

```

**Returns**:

- `String`

#### organization_id()

```ruby
def organization_id()

```

**Returns**:

- `String`

#### state()

```ruby
def state()

```

**Returns**:

- `String`

#### created_at()

```ruby
def created_at()

```

**Returns**:

- `String`

#### updated_at()

```ruby
def updated_at()

```

**Returns**:

- `String`

#### last_used_at()

```ruby
def last_used_at()

```

**Returns**:

- `String`

#### error_reason()

```ruby
def error_reason()

```

**Returns**:

- `String, nil`
