Exception: Groupon::GrouponError

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

Overview

Contains information for errors returned by the API

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ GrouponError

Returns a new instance of GrouponError.



44
45
46
47
# File 'lib/groupon.rb', line 44

def initialize(data)
  @data = data
  super
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



42
43
44
# File 'lib/groupon.rb', line 42

def data
  @data
end