Method: Hallon::Playlist#name=
- Defined in:
- lib/hallon/playlist.rb
#name=(name) ⇒ Object
Note:
The name must not consist of only spaces and it must be shorter than 256 characters.
220 221 222 223 224 225 226 |
# File 'lib/hallon/playlist.rb', line 220 def name=(name) unless error = Playlist.invalid_name?(name) Error.maybe_raise(Spotify.playlist_rename(pointer, name)) else raise ArgumentError, error end end |