Method: KloutAPI::KloutAPIError#initialize
- Defined in:
- lib/klout_stable.rb
#initialize(data) ⇒ KloutAPIError
Returns a new instance of KloutAPIError.
35 36 37 38 |
# File 'lib/klout_stable.rb', line 35 def initialize(data) @data = Hashie::Mash.new(data) super "The Klout API responded with the following error - #{data}" end |