Class: RubyAppAddress
- Inherits:
-
Object
- Object
- RubyAppAddress
- Defined in:
- lib/ruby-app/common_config.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(host, port) ⇒ RubyAppAddress
constructor
A new instance of RubyAppAddress.
- #to_s ⇒ Object
Constructor Details
#initialize(host, port) ⇒ RubyAppAddress
Returns a new instance of RubyAppAddress.
5 6 7 8 |
# File 'lib/ruby-app/common_config.rb', line 5 def initialize(host, port) @host = host @port = port end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/ruby-app/common_config.rb', line 4 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/ruby-app/common_config.rb', line 4 def port @port end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/ruby-app/common_config.rb', line 10 def to_s "#{host}:#{port}" end |