orbit-4-2/lib/store.rb

9 lines
199 B
Ruby

class Store
include HTTParty
base_uri 'http://localhost:3000'
def post(text)
options = { :body => {:status => text}, :token => @auth }
self.class.post('/api/clients', options)
end
end