Exception: K2ValidateErrors
- Defined in:
- lib/k2-connect-ruby/k2_errors.rb
Overview
Errors concerning the Validation module
Direct Known Subclasses
Instance Attribute Summary collapse
-
#the_keys ⇒ Object
readonly
Returns the value of attribute the_keys.
Attributes inherited from K2Errors
Instance Method Summary collapse
-
#initialize(the_keys) ⇒ K2ValidateErrors
constructor
A new instance of K2ValidateErrors.
- #loop_keys ⇒ Object
- #message ⇒ Object
Constructor Details
#initialize(the_keys) ⇒ K2ValidateErrors
Returns a new instance of K2ValidateErrors.
47 48 49 50 51 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 47 def initialize(the_keys) super @the_keys = the_keys @status = :bad_request end |
Instance Attribute Details
#the_keys ⇒ Object (readonly)
Returns the value of attribute the_keys.
45 46 47 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 45 def the_keys @the_keys end |
Instance Method Details
#loop_keys ⇒ Object
53 54 55 56 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 53 def loop_keys STDERR.puts @message @the_keys.each(&method(:puts)) end |
#message ⇒ Object
58 59 60 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 58 def loop_keys end |