Class: Deadlift::Barbell::Default
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Deadlift::Barbell::Default
- Defined in:
- lib/deadlift/barbell/default.rb
Instance Method Summary collapse
- #approved? ⇒ Boolean
- #errors ⇒ Object
-
#initialize(params) ⇒ Default
constructor
A new instance of Default.
Constructor Details
Instance Method Details
#approved? ⇒ Boolean
16 17 18 |
# File 'lib/deadlift/barbell/default.rb', line 16 def approved? errors.empty? end |
#errors ⇒ Object
12 13 14 |
# File 'lib/deadlift/barbell/default.rb', line 12 def errors @barbell.errors end |