diff options
| author | Teddy Wing | 2014-06-08 07:16:49 -0400 |
|---|---|---|
| committer | Teddy Wing | 2014-06-08 07:16:49 -0400 |
| commit | 9f033f1558c67484c545ff3610b2c866603a6eef (patch) | |
| tree | 19dad9dfb06958a481134d82ca053c599e8ca547 /fancy_bear/contextio/base.rb | |
| parent | 2570476fff3ad2d43816fc5aeace567765b86f4f (diff) | |
| download | sellevate-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/base.rb')
| -rw-r--r-- | fancy_bear/contextio/base.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fancy_bear/contextio/base.rb b/fancy_bear/contextio/base.rb new file mode 100644 index 0000000..84473d1 --- /dev/null +++ b/fancy_bear/contextio/base.rb @@ -0,0 +1,13 @@ +require 'contextio' + +module FancyBear + module ContextIO + + class Base + def initialize + @contextio = ::ContextIO.new(API_KEY, API_SECRET) + end + end + + end +end |
