Sha256: 5d8ddfc804b71929649510e091423f5e5c75d820e06b283aefbe2cbbbbfccbff
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
class ContentService def self.query(path, payload) MultiJson.load(RestClient::Request.execute( :method => :post, :url => "#{url}/#{path}", :headers => { :content_type => :json, :accept => :json, }, :payload => MultiJson.dump(payload) )) end private def self.url @url ||= begin config = RailsConnector::Configuration.content_service "#{config['login']}:#{config['api_key']}@#{config['url']}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
infopark_cloud_connector-6.8.0.210.ed204b0 | lib/rails_connector/content_service.rb |