Class: JarvisbotSongfinder::UnknownProvider
- Inherits:
-
Object
- Object
- JarvisbotSongfinder::UnknownProvider
- Defined in:
- lib/jarvisbot_songfinder/providers/unknown_provider.rb
Overview
NullObject for handling cases where none of the providers matched request with their URL_REGEX
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize ⇒ UnknownProvider
constructor
A new instance of UnknownProvider.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ UnknownProvider
Returns a new instance of UnknownProvider.
9 10 11 |
# File 'lib/jarvisbot_songfinder/providers/unknown_provider.rb', line 9 def initialize @errors = [ReplyMessage::Request.unknown_provider] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/jarvisbot_songfinder/providers/unknown_provider.rb', line 7 def errors @errors end |
Instance Method Details
#valid? ⇒ Boolean
13 14 15 |
# File 'lib/jarvisbot_songfinder/providers/unknown_provider.rb', line 13 def valid? false end |