Class: Spotify::SessionConfig
- Defined in:
- lib/spotify/structs/session_config.rb
Overview
Spotify::Struct for Session configuration.
Instance Attribute Summary collapse
-
#api_version ⇒ Fixnum
The current value of api_version.
-
#application_key_size ⇒ size_t
The current value of application_key_size.
-
#ca_certs_filename ⇒ StringPointer
The current value of ca_certs_filename.
-
#cache_location ⇒ StringPointer
The current value of cache_location.
-
#callbacks ⇒ StructPointer
The current value of callbacks.
-
#device_id ⇒ StringPointer
The current value of device_id.
-
#dont_save_metadata_for_playlists ⇒ Fixnum
The current value of dont_save_metadata_for_playlists.
-
#initially_unload_playlists ⇒ Fixnum
The current value of initially_unload_playlists.
-
#proxy ⇒ StringPointer
The current value of proxy.
-
#proxy_password ⇒ StringPointer
The current value of proxy_password.
-
#proxy_username ⇒ StringPointer
The current value of proxy_username.
-
#settings_location ⇒ StringPointer
The current value of settings_location.
-
#tracefile ⇒ StringPointer
The current value of tracefile.
-
#user_agent ⇒ StringPointer
The current value of user_agent.
-
#userdata ⇒ Pointer
The current value of userdata.
Instance Method Summary collapse
-
#[]=(key, value) ⇒ Object
Overridden for some keys for convenience.
Methods inherited from Struct
enclosing_module, #initialize, #to_h, #to_s
Methods included from TypeSafety
Constructor Details
This class inherits a constructor from Spotify::Struct
Instance Attribute Details
#api_version ⇒ Fixnum
Returns the current value of api_version.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def api_version @api_version end |
#application_key_size ⇒ size_t
Returns the current value of application_key_size.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def application_key_size @application_key_size end |
#ca_certs_filename ⇒ StringPointer
Returns the current value of ca_certs_filename.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def ca_certs_filename @ca_certs_filename end |
#cache_location ⇒ StringPointer
Returns the current value of cache_location.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def cache_location @cache_location end |
#callbacks ⇒ StructPointer
Returns the current value of callbacks.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def callbacks @callbacks end |
#device_id ⇒ StringPointer
Returns the current value of device_id.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def device_id @device_id end |
#dont_save_metadata_for_playlists ⇒ Fixnum
Returns the current value of dont_save_metadata_for_playlists.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def @dont_save_metadata_for_playlists end |
#initially_unload_playlists ⇒ Fixnum
Returns the current value of initially_unload_playlists.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def initially_unload_playlists @initially_unload_playlists end |
#proxy ⇒ StringPointer
Returns the current value of proxy.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def proxy @proxy end |
#proxy_password ⇒ StringPointer
Returns the current value of proxy_password.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def proxy_password @proxy_password end |
#proxy_username ⇒ StringPointer
Returns the current value of proxy_username.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def proxy_username @proxy_username end |
#settings_location ⇒ StringPointer
Returns the current value of settings_location.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def settings_location @settings_location end |
#tracefile ⇒ StringPointer
Returns the current value of tracefile.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def tracefile @tracefile end |
#user_agent ⇒ StringPointer
Returns the current value of user_agent.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def user_agent @user_agent end |
#userdata ⇒ Pointer
Returns the current value of userdata.
20 21 22 |
# File 'lib/spotify/structs/session_config.rb', line 20 def userdata @userdata end |
Instance Method Details
#[]=(key, value) ⇒ Object
Overridden for some keys for convenience.
49 50 51 52 53 54 55 56 |
# File 'lib/spotify/structs/session_config.rb', line 49 def []=(key, value) case key when :application_key super(key, value) self[:application_key_size] = value.bytesize if value else super end end |