Exception: K2ConnectRuby::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.
48 49 50 51 52 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 48 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.
46 47 48 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 46 def the_keys @the_keys end |
Instance Method Details
#loop_keys ⇒ Object
54 55 56 57 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 54 def loop_keys STDERR.puts @message @the_keys.each(&method(:puts)) end |
#message ⇒ Object
59 60 61 |
# File 'lib/k2-connect-ruby/k2_errors.rb', line 59 def loop_keys end |