Module: RaygunClient::HTTP::Post::Substitute

Defined in:
lib/raygun_client/http/post.rb

Defined Under Namespace

Classes: Post

Class Method Summary collapse

Class Method Details

.buildObject



102
103
104
105
106
107
108
109
# File 'lib/raygun_client/http/post.rb', line 102

def self.build
  substitute = Substitute::Post.new

  sink = RaygunClient::HTTP::Post.register_telemetry_sink(substitute)
  substitute.sink = sink

  substitute
end