Class: Instagram::Post::Config
- Inherits:
-
Object
- Object
- Instagram::Post::Config
- Defined in:
- lib/instagram/post/config.rb
Instance Attribute Summary collapse
-
#app_secret ⇒ Object
Returns the value of attribute app_secret.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
-
#scope ⇒ Object
Returns the value of attribute scope.
Class Method Summary collapse
Instance Attribute Details
#app_secret ⇒ Object
Returns the value of attribute app_secret.
6 7 8 |
# File 'lib/instagram/post/config.rb', line 6 def app_secret @app_secret end |
#client_id ⇒ Object
Returns the value of attribute client_id.
6 7 8 |
# File 'lib/instagram/post/config.rb', line 6 def client_id @client_id end |
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
6 7 8 |
# File 'lib/instagram/post/config.rb', line 6 def redirect_uri @redirect_uri end |
#scope ⇒ Object
Returns the value of attribute scope.
6 7 8 |
# File 'lib/instagram/post/config.rb', line 6 def scope @scope end |
Class Method Details
.config {|conf| ... } ⇒ Object
8 9 10 11 12 13 |
# File 'lib/instagram/post/config.rb', line 8 def self.config conf = Config.new conf.scope = 'email,public_profile,pages_show_list,instagram_basic,instagram_content_publish,pages_show_list' yield conf {client_id: conf.client_id, app_secret: conf.app_secret, redirect_uri: conf.redirect_uri, scope: conf.scope} end |