Method: Wavefront::Write#initialize
- Defined in:
- lib/wavefront-sdk/write.rb
#initialize(creds = {}, opts = {}) ⇒ Write
Construct an object which gives the user an interface for writing points to Wavefront. The actual writing is handled by
- a Wavefront::Writer
-
subclass.
53 54 55 56 57 58 59 |
# File 'lib/wavefront-sdk/write.rb', line 53 def initialize(creds = {}, opts = {}) @opts = (opts, defaults) @creds = creds (opts[:tags]) if opts[:tags] @logger = Wavefront::Logger.new(opts) @writer = setup_writer end |