Module: StackMob::Helpers

Defined in:
lib/stackmob/helpers.rb

Instance Method Summary collapse

Instance Method Details

#sm_datastoreObject



17
18
19
20
21
22
# File 'lib/stackmob/helpers.rb', line 17

def sm_datastore
  @sm_datastore ||= begin
                      client = StackMob::Client.new(sm_api_host, sm_app_name, StackMob.env, StackMob.key, StackMob.secret)
                      StackMob::DataStore.new(client)
                    end
end

#sm_pushObject



24
25
26
27
28
29
# File 'lib/stackmob/helpers.rb', line 24

def sm_push
  @sm_push ||= begin
                 client = StackMob::Client.new(sm_push_host, sm_app_name, StackMob.env, StackMob.key, StackMob.secret)
                 StackMob::Push.new(client)
               end
end