Class: Yeller::Server
- Inherits:
-
Struct
- Object
- Struct
- Yeller::Server
- Defined in:
- lib/yeller/server.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
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
3 4 5 |
# File 'lib/yeller/server.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port
3 4 5 |
# File 'lib/yeller/server.rb', line 3 def port @port end |
Instance Method Details
#client ⇒ Object
4 5 6 |
# File 'lib/yeller/server.rb', line 4 def client @client ||= Net::HTTP.new(host, port) end |