Class: SBF::Client::Entity::Errors
- Inherits:
-
ActiveModel::Errors
- Object
- ActiveModel::Errors
- SBF::Client::Entity::Errors
- Defined in:
- lib/stbaldricks/entities/lib/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(obj, http_code = nil) ⇒ Errors
constructor
A new instance of Errors.
Constructor Details
#initialize(obj, http_code = nil) ⇒ Errors
Returns a new instance of Errors.
56 57 58 59 |
# File 'lib/stbaldricks/entities/lib/error.rb', line 56 def initialize(obj, http_code = nil) super(obj) @http_code = http_code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
54 55 56 |
# File 'lib/stbaldricks/entities/lib/error.rb', line 54 def code @code end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
54 55 56 |
# File 'lib/stbaldricks/entities/lib/error.rb', line 54 def http_code @http_code end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
54 55 56 |
# File 'lib/stbaldricks/entities/lib/error.rb', line 54 def type @type end |