Class: Nis

Overview

API Ruby Wrapper for NEM Infrastructure Server

Defined Under Namespace

Modules: Endpoint, Unit, Util Classes: BadRequestError, Client, Error, InternalServerError, NotFoundError, Struct

Constant Summary collapse

VERSION =
'0.0.7'.freeze

Instance Method Summary collapse

Methods included from Endpoint::Debug::TimeSynchronization

#debug_time_synchronization

Methods included from Endpoint::Debug::Connections

#debug_connections_incoming, #debug_connections_outgoing, #debug_connections_timers

Methods included from Endpoint::Node::PeerList

#node_peerlist_active, #node_peerlist_all, #node_peerlist_reachable

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_all, #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::Block::Get

#block_get

Methods included from Endpoint::Block::At

#block_at_public

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_all, #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::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 (Symbol)

    URL

  • :scheme (Symbol)

    default http (http only)

  • :host (Symbol)

    default 127.0.0.1

  • :port (Symbol)

    default 7890

  • :timeout (Symbol)

    default 5


21
22
23
# File 'lib/nis.rb', line 21

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