Method: Zold::Http#initialize
- Defined in:
- lib/zold/http.rb
#initialize(uri:, score: Score::ZERO, network: 'test') ⇒ Http
Returns a new instance of Http.
102 103 104 105 106 |
# File 'lib/zold/http.rb', line 102 def initialize(uri:, score: Score::ZERO, network: 'test') @uri = uri.is_a?(URI) ? uri : URI(uri) @score = score @network = network end |