Class: ACTV::AssetValidator
- Inherits:
-
Object
- Object
- ACTV::AssetValidator
- Defined in:
- lib/actv/validators/asset_validator.rb
Direct Known Subclasses
ArticleValidator, AuthorValidator, EventValidator, QuizOutcomeValidator, QuizQuestionAnswerValidator, QuizQuestionValidator, QuizValidator, VideoValidator
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ AssetValidator
constructor
A new instance of AssetValidator.
- #valid? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ AssetValidator
Returns a new instance of AssetValidator.
5 6 7 |
# File 'lib/actv/validators/asset_validator.rb', line 5 def initialize response @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/actv/validators/asset_validator.rb', line 3 def response @response end |
Instance Method Details
#valid? ⇒ Boolean
9 10 11 |
# File 'lib/actv/validators/asset_validator.rb', line 9 def valid? true end |