Sha256: dcef07a952d495b14a2e28dff00051d9dc84230b69579ef970c657470a419ffa

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true
class NanoRpc::Wallet
  include NanoRpc::Proxy
  include NanoRpc::WalletHelper
  include NanoRpc::WalletMethods

  attr_reader :id

  def initialize(id = nil, opts = {})
    unless id.is_a?(String)
      raise NanoRpc::MissingParameters,
            'Missing argument: id (str)'
    end

    @id = id
    super(opts)
  end

  def inspect
    "#{inspect_prefix}, @id=\"#{@id}\">"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nano_rpc-0.26.0 lib/nano_rpc/wallet.rb
nano_rpc-0.25.0 lib/nano_rpc/wallet.rb
nano_rpc-0.24.0 lib/nano_rpc/proxies/wallet.rb
nano_rpc-0.23.0 lib/nano_rpc/proxies/wallet.rb
nano_rpc-0.22.0 lib/nano_rpc/proxies/wallet.rb
nano_rpc-0.21.0 lib/nano_rpc/proxies/wallet.rb
nano_rpc-0.20.0 lib/nano_rpc/proxies/wallet.rb
nano_rpc-0.19.0 lib/nano_rpc/proxies/wallet.rb
nano_rpc-0.18.0 lib/nano_rpc/proxies/wallet.rb