Class: Nis

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Endpoint::Heartbeat, Endpoint::Status
Defined in:
lib/nis.rb,
lib/nis/error.rb,
lib/nis/version.rb

Overview

API Ruby Wrapper for NEM Infrastructure Server

Defined Under Namespace

Modules: Endpoint, Unit, Util Classes: Client, Error, Struct

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Instance Method Summary collapse

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