Class: ImgFlipMemes::OneDoesNotSimply

Inherits:
BaseMeme
  • Object
show all
Defined in:
lib/edi/services/img_flip_memes/one_does_not_simply.rb

Instance Attribute Summary

Attributes inherited from BaseMeme

#captures, #imgflip_password, #imgflip_user, #message, #text1

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_idObject



3
4
5
# File 'lib/edi/services/img_flip_memes/one_does_not_simply.rb', line 3

def template_id
  61579
end

#text0Object



7
8
9
# File 'lib/edi/services/img_flip_memes/one_does_not_simply.rb', line 7

def text0
  "One Does Not Simply"
end

#tokenizeObject



11
12
13
14
15
# File 'lib/edi/services/img_flip_memes/one_does_not_simply.rb', line 11

def tokenize
  captures = text.match(/one does not simply(?<text1>.+)/i)
  self.captures[:text1] = captures[:text1]
  true
end