Class: SBF::Client::ApiErrorEntity
- Inherits:
-
ErrorEntity
- Object
- ErrorEntity
- SBF::Client::ApiErrorEntity
- Defined in:
- lib/stbaldricks/entities/lib/error.rb
Constant Summary
Constants inherited from ErrorEntity
Instance Attribute Summary collapse
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
Attributes inherited from ErrorEntity
#code, #details, #fields, #type
Instance Method Summary collapse
-
#initialize(data) ⇒ ApiErrorEntity
constructor
A new instance of ApiErrorEntity.
Methods inherited from ErrorEntity
#empty?, #to_hash, #to_json, #to_s
Constructor Details
#initialize(data) ⇒ ApiErrorEntity
Returns a new instance of ApiErrorEntity.
46 47 48 49 |
# File 'lib/stbaldricks/entities/lib/error.rb', line 46 def initialize(data) super(data) @http_code = data[:http_code].freeze end |
Instance Attribute Details
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
44 45 46 |
# File 'lib/stbaldricks/entities/lib/error.rb', line 44 def http_code @http_code end |