Class: BlackStack::NextBot::BaseRemoteObject

Inherits:
Object
  • Object
show all
Defined in:
lib/remotebaseobject.rb

Overview

The “remote” (or API class) that will be receive the data from an API call.

Direct Known Subclasses

RemoteCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptorObject

Returns the value of attribute descriptor.



6
7
8
# File 'lib/remotebaseobject.rb', line 6

def descriptor
  @descriptor
end

Instance Method Details

#build(h) ⇒ Object

Attributes initialization from a hash descritor. This base method will map the “h” parameter to the “descriptor” attribute,

> in order to keep a copy of it.



10
11
12
# File 'lib/remotebaseobject.rb', line 10

def build(h)
  self.descriptor = h.clone
end