Exception: Motion::BadSecretError
- Defined in:
- lib/motion/errors.rb
Instance Attribute Summary collapse
-
#minimum_bytes ⇒ Object
readonly
Returns the value of attribute minimum_bytes.
Instance Method Summary collapse
-
#initialize(minimum_bytes) ⇒ BadSecretError
constructor
A new instance of BadSecretError.
Constructor Details
#initialize(minimum_bytes) ⇒ BadSecretError
Returns a new instance of BadSecretError.
159 160 161 162 163 164 |
# File 'lib/motion/errors.rb', line 159 def initialize(minimum_bytes) super( "The secret that you provided is not long enough. It must be at " \ "least #{minimum_bytes} bytes long." ) end |
Instance Attribute Details
#minimum_bytes ⇒ Object (readonly)
Returns the value of attribute minimum_bytes.
157 158 159 |
# File 'lib/motion/errors.rb', line 157 def minimum_bytes @minimum_bytes end |