Class: Xberg::AudioMetadata

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAudioMetadata

Returns a new instance of AudioMetadata.

Parameters:

  • duration_ms: (Integer)
  • codec: (String)
  • container: (String)
  • sample_rate_hz: (Integer)
  • channels: (Integer)
  • bitrate: (Integer)


53
# File 'sig/types.rbs', line 53

def initialize: (?duration_ms: Integer, ?codec: String, ?container: String, ?sample_rate_hz: Integer, ?channels: Integer, ?bitrate: Integer) -> void

Instance Attribute Details

#bitrateInteger? (readonly)

Returns the value of attribute bitrate.

Returns:

  • (Integer, nil)


51
52
53
# File 'sig/types.rbs', line 51

def bitrate
  @bitrate
end

#channelsInteger? (readonly)

Returns the value of attribute channels.

Returns:

  • (Integer, nil)


50
51
52
# File 'sig/types.rbs', line 50

def channels
  @channels
end

#codecString? (readonly)

Returns the value of attribute codec.

Returns:

  • (String, nil)


47
48
49
# File 'sig/types.rbs', line 47

def codec
  @codec
end

#containerString? (readonly)

Returns the value of attribute container.

Returns:

  • (String, nil)


48
49
50
# File 'sig/types.rbs', line 48

def container
  @container
end

#duration_msInteger? (readonly)

Returns the value of attribute duration_ms.

Returns:

  • (Integer, nil)


46
47
48
# File 'sig/types.rbs', line 46

def duration_ms
  @duration_ms
end

#sample_rate_hzInteger? (readonly)

Returns the value of attribute sample_rate_hz.

Returns:

  • (Integer, nil)


49
50
51
# File 'sig/types.rbs', line 49

def sample_rate_hz
  @sample_rate_hz
end