Class: Psapi::Settings

Inherits:
API_Object show all
Defined in:
lib/psapi/settings.rb

Defined Under Namespace

Classes: ChannelCleaner

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API_Object

accessors_for, define_all_with, inherited, #mass_assign

Methods included from Internal

camel_to_snake

Methods included from PeercastStation

initialize, #method_missing

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_directsObject

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_channelObject

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_relaysObject

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_channelObject

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_rateObject

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_channelObject

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_cleanerObject



32
33
34
# File 'lib/psapi/settings.rb', line 32

def channel_cleaner
  ChannelCleaner.new(@channel_cleaner)
end