Method: Rbeapi::Api::Entity#initialize

Defined in:
lib/rbeapi/api.rb

#initialize(node) ⇒ Entity

The Entity class provides a base class implementation for building API modules. The Entity class is typically not instantiated directly but serves as a super class with convenience methods used to work with the node.

Parameters:

  • node (Node)

    This should be an instance of Rbeapi::Client::Node that is used to send and receive eAPI messages.



68
69
70
# File 'lib/rbeapi/api.rb', line 68

def initialize(node)
  @node = node
end