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.



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

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.



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

def error_code
  @error_code
end