Exception: CrowdFlower::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/crowdflower/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ APIError

Returns a new instance of APIError.



23
24
25
26
27
# File 'lib/crowdflower/base.rb', line 23

def initialize(hash)
  @details = hash
  
  super(hash.inspect)
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



21
22
23
# File 'lib/crowdflower/base.rb', line 21

def details
  @details
end