# Chart (/docs/ruby-sdk/charts)

## Chart [#chart]

Chart class for Daytona SDK.

### Constructors [#constructors]

#### new Chart() [#new-chart]

```ruby
def initialize(type: nil, title: nil, png: nil, elements: [])

```

**Returns**:

- `Chart` - a new instance of Chart

### Methods [#methods]

#### type=() [#type]

```ruby
def type=(value)

```

Sets the attribute type

**Parameters**:

- `value` _Object_ - the value to set the attribute type to.

**Returns**:

- `Object` - the newly set value

#### type() [#type-1]

```ruby
def type()

```

Returns the value of attribute type

**Returns**:

- `Object` - the current value of type

#### title=() [#title]

```ruby
def title=(value)

```

Sets the attribute title

**Parameters**:

- `value` _Object_ - the value to set the attribute title to.

**Returns**:

- `Object` - the newly set value

#### title() [#title-1]

```ruby
def title()

```

Returns the value of attribute title

**Returns**:

- `Object` - the current value of title

#### png=() [#png]

```ruby
def png=(value)

```

Sets the attribute png

**Parameters**:

- `value` _Object_ - the value to set the attribute png to.

**Returns**:

- `Object` - the newly set value

#### png() [#png-1]

```ruby
def png()

```

Returns the value of attribute png

**Returns**:

- `Object` - the current value of png

#### elements=() [#elements]

```ruby
def elements=(value)

```

Sets the attribute elements

**Parameters**:

- `value` _Object_ - the value to set the attribute elements to.

**Returns**:

- `Object` - the newly set value

#### elements() [#elements-1]

```ruby
def elements()

```

Returns the value of attribute elements

**Returns**:

- `Object` - the current value of elements
