MythTV  master
Public Member Functions | Private Attributes | List of all members
hardwareprofile.gate._FakeGate Class Reference
Inheritance diagram for hardwareprofile.gate._FakeGate:
Inheritance graph
[legend]
Collaboration diagram for hardwareprofile.gate._FakeGate:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, grant)
 
def grants (self, *args)
 
- Public Member Functions inherited from hardwareprofile.gate._GateBase
def process (self, data_set, value_if_granted, value_else)
 

Private Attributes

 _granted
 

Detailed Description

Definition at line 67 of file gate.py.

Constructor & Destructor Documentation

◆ __init__()

def hardwareprofile.gate._FakeGate.__init__ (   self,
  grant 
)
>>> gate = _FakeGate(grant=True)
>>> gate.grants("whatever")
True
>>> gate = _FakeGate(grant=False)
>>> gate.grants("whatever")
False

Definition at line 68 of file gate.py.

Member Function Documentation

◆ grants()

def hardwareprofile.gate._FakeGate.grants (   self,
args 
)

Definition at line 79 of file gate.py.

Referenced by hardwareprofile.gate._GateBase.process().

Member Data Documentation

◆ _granted

hardwareprofile.gate._FakeGate._granted
private

Definition at line 77 of file gate.py.

Referenced by hardwareprofile.gate._FakeGate.grants().


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