Bridges-Python 3.5.0-dev1
Bridges(Python API)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Properties | List of all members
bridges.data_src_dependent.game.Game Class Reference

A Game object, used along with the Games data source. More...

Public Member Functions

 __init__ (self, str title="", str platform="", float rating=0.0, str genre="")
 Constructor.
 

Protected Attributes

 _title
 
 _platform
 
 _rating
 
 _genre
 

Properties

 title = property
 get game title
 
 platform = property
 get game platform
 
 rating = property
 get game rating
 
 genre = property
 get game genres
 

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

Constructor & Destructor Documentation

◆ __init__()

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 Data Documentation

◆ _genre

bridges.data_src_dependent.game.Game._genre
protected

◆ _platform

bridges.data_src_dependent.game.Game._platform
protected

◆ _rating

bridges.data_src_dependent.game.Game._rating
protected

◆ _title

bridges.data_src_dependent.game.Game._title
protected

Property Documentation

◆ genre

bridges.data_src_dependent.game.Game.genre = property
static

get game genres

Returns
game genres (list of strings)

◆ platform

bridges.data_src_dependent.game.Game.platform = property
static

get game platform

Returns
game platform

◆ rating

bridges.data_src_dependent.game.Game.rating = property
static

get game rating

Returns
game rating

◆ title

bridges.data_src_dependent.game.Game.title = property
static

get game title

Returns
game title

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