Class: CardanoWallet::Misc::Settings

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

Overview

API for Network

Instance Attribute Summary

Attributes inherited from Base

#opt

Instance Method Summary collapse

Methods inherited from Base

#byron, #initialize, #misc, #shared, #shelley, #utils

Constructor Details

This class inherits a constructor from CardanoWallet::Base

Instance Method Details

#getObject



62
63
64
# File 'lib/cardano_wallet/misc.rb', line 62

def get
  self.class.get('/settings')
end

#update(params) ⇒ Object



67
68
69
70
71
72
# File 'lib/cardano_wallet/misc.rb', line 67

def update(params)
  CardanoWallet::Utils.verify_param_is_hash!(params)
  self.class.put('/settings',
                 body: { 'settings' => params }.to_json,
                 headers: { 'Content-Type' => 'application/json' })
end