Class: EmbedRb::Instagram
- Inherits:
-
Object
- Object
- EmbedRb::Instagram
- Includes:
- Base
- Defined in:
- lib/embedrb/image/embed_instagram.rb
Instance Method Summary collapse
-
#initialize(input, output, options, embeds) ⇒ Instagram
constructor
A new instance of Instagram.
Methods included from Base
#embed, #process, #shorten, #url_to_text
Constructor Details
#initialize(input, output, options, embeds) ⇒ Instagram
Returns a new instance of Instagram.
8 9 10 11 12 13 14 15 |
# File 'lib/embedrb/image/embed_instagram.rb', line 8 def initialize(input, output, , ) @input = input @output = output @embeds = @options = @regex = /(instagram.com\/p\/[a-zA-Z0-9_\/\?\-\=]+)/mi @service = :instagram end |