Class: Worldline::Connect::SDK::V1::Domain::APIError
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::APIError
- Defined in:
- lib/worldline/connect/sdk/v1/domain/api_error.rb
Instance Attribute Summary collapse
-
#category ⇒ String
The current value of category.
-
#code ⇒ String
The current value of code.
-
#http_status_code ⇒ Integer
The current value of http_status_code.
-
#id ⇒ String
The current value of id.
-
#message ⇒ String
The current value of message.
-
#property_name ⇒ String
The current value of property_name.
-
#request_id ⇒ String
The current value of request_id.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#category ⇒ String
Returns the current value of category.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def category @category end |
#code ⇒ String
Returns the current value of code.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def code @code end |
#http_status_code ⇒ Integer
Returns the current value of http_status_code.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def http_status_code @http_status_code end |
#id ⇒ String
Returns the current value of id.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def id @id end |
#message ⇒ String
Returns the current value of message.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def @message end |
#property_name ⇒ String
Returns the current value of property_name.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def property_name @property_name end |
#request_id ⇒ String
Returns the current value of request_id.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 19 def request_id @request_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 48 def from_hash(hash) super if hash.has_key? 'category' @category = hash['category'] end if hash.has_key? 'code' @code = hash['code'] end if hash.has_key? 'httpStatusCode' @http_status_code = hash['httpStatusCode'] end if hash.has_key? 'id' @id = hash['id'] end if hash.has_key? 'message' @message = hash['message'] end if hash.has_key? 'propertyName' @property_name = hash['propertyName'] end if hash.has_key? 'requestId' @request_id = hash['requestId'] end end |
#to_h ⇒ Hash
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/worldline/connect/sdk/v1/domain/api_error.rb', line 36 def to_h hash = super hash['category'] = @category unless @category.nil? hash['code'] = @code unless @code.nil? hash['httpStatusCode'] = @http_status_code unless @http_status_code.nil? hash['id'] = @id unless @id.nil? hash['message'] = @message unless @message.nil? hash['propertyName'] = @property_name unless @property_name.nil? hash['requestId'] = @request_id unless @request_id.nil? hash end |