Exception: CrvApiClient::Errors::CrvRequestError

Inherits:
CrvError
  • Object
show all
Defined in:
lib/crv_api_client/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/crv_api_client/errors.rb', line 10

def code
  @code
end

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/crv_api_client/errors.rb', line 10

def data
  @data
end

#typeObject (readonly)

Returns the value of attribute type.



10
11
12
# File 'lib/crv_api_client/errors.rb', line 10

def type
  @type
end