Exception: Giggly::Rest::SocializeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/giggly/rest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_data) ⇒ SocializeError

Returns a new instance of SocializeError.



12
13
14
15
# File 'lib/giggly/rest.rb', line 12

def initialize(error_data)
  @error_code = error_data["errorCode"]
  super(error_data["errorMessage"])
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



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

def error_code
  @error_code
end