Class: ABPlugin::API

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/a_b_plugin/api.rb

Instance Method Summary collapse

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

#bootObject



9
10
11
# File 'lib/a_b_plugin/api.rb', line 9

def boot
  self.class.get('/boot.json', :query => { :token => @token })
end