Class: Spotify::AudioFormat

Inherits:
Struct
  • Object
show all
Defined in:
lib/spotify/structs/audio_format.rb

Overview

Spotify::Struct for Audio Format.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

enclosing_module, #initialize, #to_h, #to_s

Methods included from TypeSafety

#to_native, #type_class

Constructor Details

This class inherits a constructor from Spotify::Struct

Instance Attribute Details

#channelsFixnum

Returns the current value of channels.

Returns:

  • (Fixnum)

    the current value of channels



7
8
9
# File 'lib/spotify/structs/audio_format.rb', line 7

def channels
  @channels
end

#sample_rateFixnum

Returns the current value of sample_rate.

Returns:

  • (Fixnum)

    the current value of sample_rate



7
8
9
# File 'lib/spotify/structs/audio_format.rb', line 7

def sample_rate
  @sample_rate
end

#sample_type:sampletype

Returns the current value of sample_type.

Returns:

  • (:sampletype)

    the current value of sample_type



7
8
9
# File 'lib/spotify/structs/audio_format.rb', line 7

def sample_type
  @sample_type
end