Class: ABPlugin::API
Instance Method Summary collapse
- #boot ⇒ Object
-
#initialize(token) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(token) ⇒ API
Returns a new instance of API.
5 6 7 |
# File 'lib/a_b_plugin/api.rb', line 5 def initialize(token) @token = token end |
Instance Method Details
#boot ⇒ Object
9 10 11 |
# File 'lib/a_b_plugin/api.rb', line 9 def boot self.class.get('/boot.json', :query => { :token => @token }) end |