Exception: VAProfile::VeteranStatus::VAProfileError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/va_profile/veteran_status/va_profile_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: nil) ⇒ VAProfileError

Returns a new instance of VAProfileError.

Parameters:

  • status (Integer) (defaults to: nil)

    An HTTP status code



14
15
16
17
# File 'lib/va_profile/veteran_status/va_profile_error.rb', line 14

def initialize(status: nil)
  super()
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/va_profile/veteran_status/va_profile_error.rb', line 10

def status
  @status
end