Class: Syncano::Packets::Error
- Defined in:
- lib/syncano/packets/error.rb
Overview
Class representing error packets used in communication with the Sync Server
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Error
constructor
Constructor for Syncano::Packets::Error object.
Methods inherited from Base
#auth?, #call_response?, instantize_packet, #message?, #notification?, #ping?
Constructor Details
#initialize(attributes) ⇒ Error
Constructor for Syncano::Packets::Error object
9 10 11 12 |
# File 'lib/syncano/packets/error.rb', line 9 def initialize(attributes) super(attributes) self.error = attributes[:error] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
5 6 7 |
# File 'lib/syncano/packets/error.rb', line 5 def error @error end |