Exception: CrvApiClient::Errors::CrvRequestError
- Defined in:
- lib/crv_api_client/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(code, data, type) ⇒ CrvRequestError
constructor
A new instance of CrvRequestError.
Constructor Details
#initialize(code, data, type) ⇒ CrvRequestError
Returns a new instance of CrvRequestError.
11 12 13 14 15 |
# File 'lib/crv_api_client/errors.rb', line 11 def initialize(code, data, type) @data = data @code = code @type = type end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/crv_api_client/errors.rb', line 10 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/crv_api_client/errors.rb', line 10 def data @data end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/crv_api_client/errors.rb', line 10 def type @type end |