Class: Instagram::Post::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/instagram/post/auth.rb

Overview

GET Auth Link Facebook

Defined Under Namespace

Classes: ForceUseRails, NotFoundConfigFile

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



21
22
23
# File 'lib/instagram/post/auth.rb', line 21

def self.link(config)
  new.call(config)
end

Instance Method Details

#call(config) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/instagram/post/auth.rb', line 12

def call(config)
  begin
    link          = "#{Instagram::Post::LINK}client_id=#{config[:client_id]}&redirect_uri=#{config[:redirect_uri]}&scope=#{config[:scope]}"
  rescue
    NotFoundConfigFile.new('Please set config file in initialize path.')
  end
end