Exception: Ey::Core::RequestFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Ey::Core::RequestFailure
- Defined in:
- lib/ey-core/request_failure.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request) ⇒ RequestFailure
constructor
A new instance of RequestFailure.
Constructor Details
#initialize(request) ⇒ RequestFailure
Returns a new instance of RequestFailure.
4 5 6 7 8 9 10 |
# File 'lib/ey-core/request_failure.rb', line 4 def initialize(request) @request = request = "#{request.} (#{request.type}) [#{request.id}]" = "#{} #{request.resource.attributes.inspect}" if request.resource super() end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
2 3 4 |
# File 'lib/ey-core/request_failure.rb', line 2 def request @request end |