Class: Psapi::Settings
- Inherits:
-
API_Object
- Object
- API_Object
- Psapi::Settings
- Defined in:
- lib/psapi/settings.rb
Defined Under Namespace
Classes: ChannelCleaner
Instance Attribute Summary collapse
-
#max_directs ⇒ Object
Returns the value of attribute max_directs.
-
#max_directs_per_channel ⇒ Object
Returns the value of attribute max_directs_per_channel.
-
#max_relays ⇒ Object
Returns the value of attribute max_relays.
-
#max_relays_per_channel ⇒ Object
Returns the value of attribute max_relays_per_channel.
-
#max_upstream_rate ⇒ Object
Returns the value of attribute max_upstream_rate.
-
#max_upstream_rate_per_channel ⇒ Object
Returns the value of attribute max_upstream_rate_per_channel.
Instance Method Summary collapse
- #channel_cleaner ⇒ Object
-
#initialize(hash) ⇒ Settings
constructor
A new instance of Settings.
Methods inherited from API_Object
accessors_for, define_all_with, inherited, #mass_assign
Methods included from Internal
Methods included from PeercastStation
Constructor Details
#initialize(hash) ⇒ Settings
Returns a new instance of Settings.
28 29 30 |
# File 'lib/psapi/settings.rb', line 28 def initialize(hash) super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Psapi::PeercastStation
Instance Attribute Details
#max_directs ⇒ Object
Returns the value of attribute max_directs.
26 27 28 |
# File 'lib/psapi/settings.rb', line 26 def max_directs @max_directs end |
#max_directs_per_channel ⇒ Object
Returns the value of attribute max_directs_per_channel.
26 27 28 |
# File 'lib/psapi/settings.rb', line 26 def max_directs_per_channel @max_directs_per_channel end |
#max_relays ⇒ Object
Returns the value of attribute max_relays.
26 27 28 |
# File 'lib/psapi/settings.rb', line 26 def max_relays @max_relays end |
#max_relays_per_channel ⇒ Object
Returns the value of attribute max_relays_per_channel.
26 27 28 |
# File 'lib/psapi/settings.rb', line 26 def max_relays_per_channel @max_relays_per_channel end |
#max_upstream_rate ⇒ Object
Returns the value of attribute max_upstream_rate.
26 27 28 |
# File 'lib/psapi/settings.rb', line 26 def max_upstream_rate @max_upstream_rate end |
#max_upstream_rate_per_channel ⇒ Object
Returns the value of attribute max_upstream_rate_per_channel.
26 27 28 |
# File 'lib/psapi/settings.rb', line 26 def max_upstream_rate_per_channel @max_upstream_rate_per_channel end |
Instance Method Details
#channel_cleaner ⇒ Object
32 33 34 |
# File 'lib/psapi/settings.rb', line 32 def channel_cleaner ChannelCleaner.new(@channel_cleaner) end |