Class: OEmbed::Providers::Instagram

Inherits:
OEmbed::Provider show all
Defined in:
lib/oembed/providers/instagram.rb

Overview

Provider for instagram.com

Instance Attribute Summary

Attributes inherited from OEmbed::Provider

#endpoint, #format, #name, #url, #urls

Instance Method Summary collapse

Methods inherited from OEmbed::Provider

#<<, #build, #get, #include?, #raw

Constructor Details

#initialize(access_token:) ⇒ Instagram

Returns a new instance of Instagram.



5
6
7
8
# File 'lib/oembed/providers/instagram.rb', line 5

def initialize(access_token:)
  super("https://graph.facebook.com/v8.0/instagram_oembed?access_token=#{access_token}", :json)
  register_urls!
end