Class: ImgFlipMemes::GonnaHaveABadTime
- Defined in:
- lib/jarvis/services/img_flip_memes/gonna_have_a_bad_time.rb
Instance Attribute Summary
Attributes inherited from BaseMeme
#captures, #imgflip_password, #imgflip_user, #message, #text0
Instance Method Summary collapse
Methods inherited from BaseMeme
#create_meme, #initialize, #method_missing, #trim_captures, #url
Constructor Details
This class inherits a constructor from ImgFlipMemes::BaseMeme
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ImgFlipMemes::BaseMeme
Instance Method Details
#template_id ⇒ Object
3 4 5 |
# File 'lib/jarvis/services/img_flip_memes/gonna_have_a_bad_time.rb', line 3 def template_id 100951 end |
#text1 ⇒ Object
7 8 9 |
# File 'lib/jarvis/services/img_flip_memes/gonna_have_a_bad_time.rb', line 7 def text1 "You're gonna have a bad time" end |
#tokenize ⇒ Object
11 12 13 14 15 |
# File 'lib/jarvis/services/img_flip_memes/gonna_have_a_bad_time.rb', line 11 def tokenize captures = text.match(/#{trigger_word},? (?<text0>.+),? you're gonna have a bad time/i) self.captures[:text0] = captures[:text0] true end |