Class: SBF::Client::ApiErrorEntity

Inherits:
ErrorEntity show all
Defined in:
lib/stbaldricks/entities/lib/error.rb

Constant Summary

Constants inherited from ErrorEntity

ErrorEntity::BAD_INPUT

Instance Attribute Summary collapse

Attributes inherited from ErrorEntity

#code, #details, #fields, #type

Instance Method Summary collapse

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_codeObject (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