Class: PaysecureApiDocumentationLive::Success44Exception
- Inherits:
-
APIException
- Object
- CoreLibrary::ApiException
- APIException
- PaysecureApiDocumentationLive::Success44Exception
- Defined in:
- lib/paysecure_api_documentation_live/exceptions/success44_exception.rb
Overview
Success44 class.
Instance Attribute Summary collapse
-
#data ⇒ Data2
TODO: Write general description for this method.
Instance Method Summary collapse
-
#initialize(reason, response) ⇒ Success44Exception
constructor
The constructor.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, response) ⇒ Success44Exception
The constructor.
19 20 21 22 23 |
# File 'lib/paysecure_api_documentation_live/exceptions/success44_exception.rb', line 19 def initialize(reason, response) super(reason, response) hash = APIHelper.json_deserialize(@response.raw_body) unbox(hash) end |
Instance Attribute Details
#data ⇒ Data2
TODO: Write general description for this method
14 15 16 |
# File 'lib/paysecure_api_documentation_live/exceptions/success44_exception.rb', line 14 def data @data end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
41 42 43 44 |
# File 'lib/paysecure_api_documentation_live/exceptions/success44_exception.rb', line 41 def inspect class_name = self.class.name.split('::').last "<#{class_name} data: #{@data.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
35 36 37 38 |
# File 'lib/paysecure_api_documentation_live/exceptions/success44_exception.rb', line 35 def to_s class_name = self.class.name.split('::').last "<#{class_name} data: #{@data}>" end |