Method: Services::ReverseMatchService#initialize
- Defined in:
- app/models/services/reverse_match_service.rb
#initialize(host, port) ⇒ ReverseMatchService
Returns a new instance of ReverseMatchService.
5 6 7 8 9 10 |
# File 'app/models/services/reverse_match_service.rb', line 5 def initialize(host, port) raise ArgumentError if host.empty? raise ArgumentError unless port.is_a?(Integer) @host = host @port = port end |