class Bunto::Drops::BuntoDrop

Public Class Methods

global() click to toggle source
# File lib/bunto/drops/bunto_drop.rb, line 7
def global
  @global ||= BuntoDrop.new
end

Public Instance Methods

environment() click to toggle source
# File lib/bunto/drops/bunto_drop.rb, line 16
def environment
  Bunto.env
end
to_h() click to toggle source
# File lib/bunto/drops/bunto_drop.rb, line 20
def to_h
  @to_h ||= {
    "version"     => version,
    "environment" => environment,
  }
end
to_json(state = nil) click to toggle source
# File lib/bunto/drops/bunto_drop.rb, line 27
def to_json(state = nil)
  require "json"
  JSON.generate(to_h, state)
end
version() click to toggle source
# File lib/bunto/drops/bunto_drop.rb, line 12
def version
  Bunto::VERSION
end