Sha256: f2c5381c1366cebac2d91de4a9cb5cd9cfb88194308062630c6ef29e20e6d6c8
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 Bytes
Contents
class ContentService def self.query(path, payload) MultiJson.load(RestClient::Request.execute( :method => :post, :user => config['login'], :password => config['api_key'], :url => "#{config['url']}/#{path}", :headers => { :content_type => :json, :accept => :json, :user_agent => user_agent, }, :payload => MultiJson.dump(payload) )) end private def self.config RailsConnector::Configuration.content_service end def self.user_agent @user_agent ||= ( gem_info = Gem.loaded_specs["infopark_cloud_connector"] "#{gem_info.name}-#{gem_info.version}" ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infopark_cloud_connector-6.8.0.348.160665197 | lib/rails_connector/content_service.rb |
infopark_cloud_connector-6.8.0.328.4a753fc | lib/rails_connector/content_service.rb |