Class: Beaconcha::SyncCommittee

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SyncCommittee.



3
4
5
6
# File 'lib/beaconcha/sync_committee.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

#retrieve(period:) ⇒ Object



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

def retrieve(period:)
  Beaconcha::Client.get(path: "/sync_committee/#{period}")
end