Sha256: 2361050f0459096c2c2dd65d0377ce6200fd3ae1c107d07bee5daba063575b1f
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
require 'uptimerobot' DEFAULT_PARAMS = { 'apiKey' => 'ZAPZAPZAP', 'format' => 'json', 'noJsonCallback' => '1' } def uptime_robot stubs = Faraday::Adapter::Test::Stubs.new described_class.new(apiKey: 'ZAPZAPZAP') do |faraday| faraday.adapter :test, stubs do |stub| yield(stub) end end end def stringify_hash(hash) Hash[*hash.map {|k, v| [k.to_s, v.to_s] }.flatten(1)] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uptimerobot-0.1.1 | spec/spec_helper.rb |