Class: Transmission::Configuration
- Inherits:
-
Object
- Object
- Transmission::Configuration
- Defined in:
- lib/transmission-rpc.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#path ⇒ Object
Returns the value of attribute path.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 34 35 36 37 |
# File 'lib/transmission-rpc.rb', line 31 def initialize self.ip = "127.0.0.1" self.port = 9091 self.path = "transmission/rpc" self end |
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
29 30 31 |
# File 'lib/transmission-rpc.rb', line 29 def ip @ip end |
#path ⇒ Object
Returns the value of attribute path.
29 30 31 |
# File 'lib/transmission-rpc.rb', line 29 def path @path end |
#port ⇒ Object
Returns the value of attribute port.
29 30 31 |
# File 'lib/transmission-rpc.rb', line 29 def port @port end |