Class: Beaconcha::Misc

Inherits:
Object
  • Object
show all
Defined in:
lib/beaconcha/misc.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_key: nil, uri_base: nil) ⇒ Misc

Returns a new instance of Misc.



3
4
5
6
# File 'lib/beaconcha/misc.rb', line 3

def initialize(api_key: nil, uri_base: nil)
  Beaconcha.configuration.api_key = api_key if api_key
  Beaconcha.configuration.uri_base = uri_base if uri_base
end

Instance Method Details

#chart(chart:) ⇒ Object



16
17
18
# File 'lib/beaconcha/misc.rb', line 16

def chart(chart:)
  Beaconcha::Client.get(path: "/chart/#{chart}")
end

#graffitiwall(slot: nil) ⇒ Object



20
21
22
# File 'lib/beaconcha/misc.rb', line 20

def graffitiwall(slot: nil)
  Beaconcha::Client.get(path: "/graffitiwall", query: { slot: slot })
end

#healthzObject



8
9
10
# File 'lib/beaconcha/misc.rb', line 8

def healthz
  Beaconcha::Client.get_without_version(path: "/healthz")
end

#healthz_loadbalancerObject



12
13
14
# File 'lib/beaconcha/misc.rb', line 12

def healthz_loadbalancer
  Beaconcha::Client.get_without_version(path: "/healthz-loadbalancer")
end