Class: HttpEventStore::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/http_event_store/endpoint.rb

Instance Method Summary collapse

Constructor Details

#initialize(endpoint, port) ⇒ Endpoint

Returns a new instance of Endpoint.


4
5
6
7
# File 'lib/http_event_store/endpoint.rb', line 4

def initialize(endpoint, port)
  @endpoint = endpoint
  @port = port
end

Instance Method Details

#urlObject


9
10
11
# File 'lib/http_event_store/endpoint.rb', line 9

def url
  "http://#{endpoint}:#{port.to_s}"
end