aboutsummaryrefslogtreecommitdiffstats
path: root/fancy_bear/contextio/auth.rb
diff options
context:
space:
mode:
authorTeddy Wing2014-06-08 07:16:49 -0400
committerTeddy Wing2014-06-08 07:16:49 -0400
commit9f033f1558c67484c545ff3610b2c866603a6eef (patch)
tree19dad9dfb06958a481134d82ca053c599e8ca547 /fancy_bear/contextio/auth.rb
parent2570476fff3ad2d43816fc5aeace567765b86f4f (diff)
downloadsellevate-9f033f1558c67484c545ff3610b2c866603a6eef.tar.bz2
FancyBear::ContextIO::Auth: move initializer to Base class
I need a ContextIO instance in another module class so let's create a base class so I don't have to keep doing it.
Diffstat (limited to 'fancy_bear/contextio/auth.rb')
-rw-r--r--fancy_bear/contextio/auth.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/fancy_bear/contextio/auth.rb b/fancy_bear/contextio/auth.rb
index 174648a..1288b6d 100644
--- a/fancy_bear/contextio/auth.rb
+++ b/fancy_bear/contextio/auth.rb
@@ -3,11 +3,7 @@ require 'contextio'
module FancyBear
module ContextIO
- class Auth
- def initialize
- @contextio = ::ContextIO.new(API_KEY, API_SECRET)
- end
-
+ class Auth < Base
def connect(callback_url)
connection_token = @contextio.connect_tokens.create(callback_url)
connection_token.browser_redirect_url