Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | List of all members
bridges.data_src_dependent.game.Game Class Reference

Detailed Description

A Game object, used along with the Games 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.

Each game record has title, platform on which it can be played, rating, and a list of genres.

This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_game_data()

See also
For an example, check out https://bridgesuncc.github.io/tutorials/Data_IGN_Games.html
Author
Matthew Mcquaigue, Kalpathi Subramanian
Date
2/1/17, 12/29/20, 1/6/21

Public Member Functions

def __init__ (self, str title="", str platform="", float rating=0.0, str genre="")
 Constructor. More...
 
def title (self)
 get game title More...
 
def title (self, t)
 Set game title. More...
 
def platform (self)
 get game platform More...
 
def platform (self, p)
 Set game platform. More...
 
def rating (self)
 get game rating More...
 
def rating (self, r)
 Set game rating. More...
 
def genre (self)
 get game genres More...
 
def genre (self, g)
 Set game title. More...
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.data_src_dependent.game.Game.__init__ (   self,
str   title = "",
str   platform = "",
float   rating = 0.0,
str   genre = "" 
)

Constructor.

Parameters
titlegame title
platformgame platform
ratinggame rating
genregame's genres

Member Function Documentation

◆ genre() [1/2]

def bridges.data_src_dependent.game.Game.genre (   self)

get game genres

Returns
game genres (list of strings)

◆ genre() [2/2]

def bridges.data_src_dependent.game.Game.genre (   self,
  g 
)

Set game title.

Parameters
ggame genres to set

◆ platform() [1/2]

def bridges.data_src_dependent.game.Game.platform (   self)

get game platform

Returns
game platform

◆ platform() [2/2]

def bridges.data_src_dependent.game.Game.platform (   self,
  p 
)

Set game platform.

Parameters
pgame platform to set

◆ rating() [1/2]

def bridges.data_src_dependent.game.Game.rating (   self)

get game rating

Returns
game rating

◆ rating() [2/2]

def bridges.data_src_dependent.game.Game.rating (   self,
  r 
)

Set game rating.

Parameters
rgame rating to set

◆ title() [1/2]

def bridges.data_src_dependent.game.Game.title (   self)

get game title

Returns
game title

◆ title() [2/2]

def bridges.data_src_dependent.game.Game.title (   self,
  t 
)

Set game title.

Parameters
tgame title to set

The documentation for this class was generated from the following file: