Asterisk - The Open Source Telephony Project  18.5.0
Public Member Functions | Data Fields
AllowableRange Class Reference
Inheritance diagram for AllowableRange:
Inheritance graph
[legend]
Collaboration diagram for AllowableRange:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, min_value, max_value)
 
def to_wiki (self)
 
- Public Member Functions inherited from Stringify
def __repr__ (self)
 

Data Fields

 max_value
 
 min_value
 

Detailed Description

Model of a allowableValues of type RANGE

See https://github.com/wordnik/swagger-core/wiki/datatypes#complex-types

Definition at line 215 of file swagger_model.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  min_value,
  max_value 
)

Definition at line 220 of file swagger_model.py.

220  def __init__(self, min_value, max_value):
221  self.min_value = min_value
222  self.max_value = max_value
223 

Member Function Documentation

◆ to_wiki()

def to_wiki (   self)

Definition at line 224 of file swagger_model.py.

References format, AllowableRange.max_value, penalty_rule.max_value, AllowableRange.min_value, and penalty_rule.min_value.

224  def to_wiki(self):
225  return "Allowed range: Min: {0}; Max: {1}".format(self.min_value, self.max_value)
226 
227 
static snd_pcm_format_t format
Definition: chan_alsa.c:102

Field Documentation

◆ max_value

max_value

Definition at line 222 of file swagger_model.py.

Referenced by AllowableRange.to_wiki().

◆ min_value

min_value

Definition at line 221 of file swagger_model.py.

Referenced by AllowableRange.to_wiki().


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