Class: BlackStack::NextBot::BaseRemoteObject
- Inherits:
-
Object
- Object
- BlackStack::NextBot::BaseRemoteObject
- Defined in:
- lib/remotebaseobject.rb
Overview
The “remote” (or API class) that will be receive the data from an API call.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#descriptor ⇒ Object
Returns the value of attribute descriptor.
Instance Method Summary collapse
-
#build(h) ⇒ Object
Attributes initialization from a hash descritor.
Instance Attribute Details
#descriptor ⇒ Object
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 |