Class: Syncano::Packets::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/syncano/packets/error.rb

Overview

Class representing error packets used in communication with the Sync Server

Instance Attribute Summary collapse

Attributes inherited from Base

#object, #timestamp

Instance Method Summary collapse

Methods inherited from Base

#auth?, #call_response?, instantize_packet, #message?, #notification?, #ping?

Constructor Details

#initialize(attributes) ⇒ Error

Constructor for Syncano::Packets::Error object

Parameters:

  • attributes (Hash)


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

#errorObject

Returns the value of attribute error.



5
6
7
# File 'lib/syncano/packets/error.rb', line 5

def error
  @error
end