Class: Beaconcha::Epoch
- Inherits:
-
Object
- Object
- Beaconcha::Epoch
- Defined in:
- lib/beaconcha/epoch.rb
Instance Method Summary collapse
-
#initialize(api_key: nil, uri_base: nil) ⇒ Epoch
constructor
A new instance of Epoch.
- #retrieve(id:) ⇒ Object
- #slots(id:) ⇒ Object
Constructor Details
#initialize(api_key: nil, uri_base: nil) ⇒ Epoch
Returns a new instance of Epoch.
3 4 5 6 |
# File 'lib/beaconcha/epoch.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 |