Bridges-Python
3.4.5-dev2-5-g352f189
Bridges(Python API)
|
A Song object, used along with the Songs data source. More...
Public Member Functions | |
def | __init__ (self, str artist="", str song="", str album="", str lyrics="", str release_date="") |
Constructor. More... | |
def | artist (self) |
return artist of song More... | |
def | artist (self, a) |
Set artist of song. More... | |
def | song_title (self) |
return title of song More... | |
def | song_title (self, s) |
Set the song title. More... | |
def | album_title (self) |
return album title More... | |
def | album_title (self, a) |
Set title of song. More... | |
def | lyrics (self) |
return lyrics of song More... | |
def | lyrics (self, l) |
Set artist of song. More... | |
def | release_date (self) |
return release date of song More... | |
def | release_date (self, r) |
Set release date of song. More... | |
A Song object, used along with the Songs data source.
This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set.
This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_song()
For an example, check out https://bridgesuncc.github.io/tutorials/Data_Song_Lyrics.html
def bridges.data_src_dependent.song.Song.__init__ | ( | self, | |
str | artist = "" , |
||
str | song = "" , |
||
str | album = "" , |
||
str | lyrics = "" , |
||
str | release_date = "" |
||
) |
Constructor.
artist | song artist |
song | song title |
album | song album |
lyrics | lyrics of song |
release_date | release date of song |
def bridges.data_src_dependent.song.Song.album_title | ( | self | ) |
return album title
def bridges.data_src_dependent.song.Song.album_title | ( | self, | |
a | |||
) |
Set title of song.
a | album title to set |
def bridges.data_src_dependent.song.Song.artist | ( | self | ) |
return artist of song
def bridges.data_src_dependent.song.Song.artist | ( | self, | |
a | |||
) |
Set artist of song.
a | artist name to set |
def bridges.data_src_dependent.song.Song.lyrics | ( | self | ) |
return lyrics of song
def bridges.data_src_dependent.song.Song.lyrics | ( | self, | |
l | |||
) |
Set artist of song.
l | lyrics data to set |
def bridges.data_src_dependent.song.Song.release_date | ( | self | ) |
return release date of song
def bridges.data_src_dependent.song.Song.release_date | ( | self, | |
r | |||
) |
Set release date of song.
r | release date to set |
def bridges.data_src_dependent.song.Song.song_title | ( | self | ) |
return title of song
def bridges.data_src_dependent.song.Song.song_title | ( | self, | |
s | |||
) |
Set the song title.
s | artist name to set |