Class: Barker::Question

Inherits:
Object
  • Object
show all
Includes:
Validations::NumericalityOfId
Defined in:
lib/barker/question.rb

Instance Method Summary collapse

Methods included from Validations::NumericalityOfId

included, #numericality_of_id

Instance Method Details

#_valid?Object



6
# File 'lib/barker/question.rb', line 6

alias :_valid? :valid?

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/barker/question.rb', line 7

def valid?
  _valid? && answers.all?(&:valid?)
end