Class: JarvisbotSongfinder::Bandrequest
- Defined in:
- lib/jarvisbot_songfinder/providers/bandrequest.rb
Overview
Pseudo-provider for internal use, pretty much a remnant of the past i’m too lazy to extract into my rails app
Instance Attribute Summary
Attributes inherited from Provider
Instance Method Summary collapse
- #artist ⇒ Object
- #explicit? ⇒ Boolean
-
#initialize(band) ⇒ Bandrequest
constructor
A new instance of Bandrequest.
- #length ⇒ Object
- #provider ⇒ Object
- #title ⇒ Object
- #url ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(band) ⇒ Bandrequest
Returns a new instance of Bandrequest.
7 8 9 10 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 7 def initialize(band) super() @band = band end |
Instance Method Details
#artist ⇒ Object
20 21 22 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 20 def artist @band end |
#explicit? ⇒ Boolean
32 33 34 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 32 def explicit? false end |
#length ⇒ Object
12 13 14 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 12 def length 0 end |
#provider ⇒ Object
24 25 26 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 24 def provider "bandrequest" end |
#title ⇒ Object
16 17 18 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 16 def title "" end |
#url ⇒ Object
28 29 30 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 28 def url "https://www.last.fm/search?q=#{@band}" end |
#valid? ⇒ Boolean
36 37 38 |
# File 'lib/jarvisbot_songfinder/providers/bandrequest.rb', line 36 def valid? true end |