Class: Nis

Overview

API Ruby Wrapper for NEM Infrastructure Server

Defined Under Namespace

Modules: Configuration, Endpoint, Mixin, Unit, Util Classes: Apostille, ApostilleAudit, BadRequestError, Client, Error, Fee, InternalServerError, Keypair, NotFoundError, Request, Struct, Transaction

Constant Summary collapse

VERSION =
'0.0.19'.freeze

Instance Attribute Summary

Attributes included from Configuration

#logger

Instance Method Summary collapse

Methods included from Configuration

configure, extended

Methods included from Endpoint::Debug::TimeSynchronization

#debug_time_synchronization

Methods included from Endpoint::Debug::Connections

#debug_connections, #debug_connections_direction, #debug_connections_incoming, #debug_connections_outgoing, #debug_connections_timers

Methods included from Endpoint::TimeSync::NetworkTime

#time_sync_network_time

Methods included from Endpoint::Node::PeerList

#node_peerlist, #node_peerlist_active, #node_peerlist_all, #node_peerlist_reachable, #node_peerlist_state

Methods included from Endpoint::Node::Info

#node_info

Methods included from Endpoint::Node::ExtendedInfo

#node_extended_info

Methods included from Endpoint::Node::Experiences

#node_experiences

Methods included from Endpoint::Node::Boot

#node_boot

Methods included from Endpoint::Node::ActivePeers

#node_active_peers_max_chain_height

Methods included from Endpoint::Local::Chain

#local_chain_blocks_after

Methods included from Endpoint::Local::Account::Transfers

#local_account_transfers, #local_account_transfers_all, #local_account_transfers_direction, #local_account_transfers_incoming, #local_account_transfers_outgoing

Methods included from Endpoint::Transaction::Announce

#transaction_announce

Methods included from Endpoint::Transaction::PrepareAnnounce

#transaction_prepare_announce

Methods included from Endpoint::Transaction::Get

#transaction_get

Methods included from Endpoint::Block::Get

#block_get

Methods included from Endpoint::Block::At

#block_at_public

Methods included from Endpoint::Mosaic::Supply

#mosaic_supply

Methods included from Endpoint::Namespace::Root

#namespace_root_page

Methods included from Endpoint::Namespace::Mosaic

#namespace_mosaic_definition_page

Methods included from Endpoint::Namespace

#namespace

Methods included from Endpoint::Chain::Score

#chain_score

Methods included from Endpoint::Chain::LastBlock

#chain_last_block

Methods included from Endpoint::Chain::Height

#chain_height

Methods included from Endpoint::Account::Historical

#account_historical_get

Methods included from Endpoint::Account::Unlocked

#account_unlocked_info

Methods included from Endpoint::Account::Lock

#account_lock

Methods included from Endpoint::Account::Unlock

#account_unlock

Methods included from Endpoint::Account::Mosaic

#account_mosaic_definition_page, #account_mosaic_owned

Methods included from Endpoint::Account::Namespace

#account_namespace_page

Methods included from Endpoint::Account::Importances

#account_importances

Methods included from Endpoint::Account::Harvests

#account_harvests

Methods included from Endpoint::Account::UnconfirmedTransactions

#account_unconfirmed_transactions

Methods included from Endpoint::Account::Transfers

#account_transfers, #account_transfers_all, #account_transfers_direction, #account_transfers_incoming, #account_transfers_outgoing

Methods included from Endpoint::Account::Status

#account_status

Methods included from Endpoint::Account::Get

#account_get, #account_get_forwarded, #account_get_forwarded_from_public_key, #account_get_from_public_key

Methods included from Endpoint::Account::Generate

#account_generate

Methods included from Endpoint::Shutdown

#shutdown

Methods included from Endpoint::Status

#status

Methods included from Endpoint::Heartbeat

#heartbeat

Constructor Details

#initialize(options = {}) ⇒ Nis

Returns a new instance of Nis.

Parameters:

  • options (hash) (defaults to: {})

    HTTP Client connection information

Options Hash (options):

  • :url (String)

    URL

  • :scheme (String)

    default http

  • :host (Symbol)

    default 127.0.0.1

  • :port (Integer)

    default 7890

  • :timeout (Integer)

    default 5



31
32
33
# File 'lib/nis.rb', line 31

def initialize(options = {})
  @client = Client.new(options)
end