Class: Yeller::Server

Inherits:
Struct
  • Object
show all
Defined in:
lib/yeller/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



3
4
5
# File 'lib/yeller/server.rb', line 3

def host
  @host
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



3
4
5
# File 'lib/yeller/server.rb', line 3

def port
  @port
end

Instance Method Details

#clientObject



4
5
6
# File 'lib/yeller/server.rb', line 4

def client
  @client ||= Net::HTTP.new(host, port)
end