Sha256: e6ee8190d8bb7e38fb82a178f13143d03b8686cbe2390fef41acf7c0bb508cd0

Contents?: true

Size: 408 Bytes

Versions: 22

Compression:

Stored size: 408 Bytes

Contents

module ChargeBee
  class Request    

    def self.send(method, url, params={}, env=nil, headers={})
      env ||= ChargeBee.default_env
      ser_params = Util.serialize(params)
      resp = Rest.request(method, url, env, ser_params||={}, headers)
      if resp.has_key?(:list)
        ListResult.new(resp[:list], resp[:next_offset]) 
      else 
        Result.new(resp)
      end
    end
      
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
chargebee-1.7.5 lib/chargebee/request.rb
chargebee-1.7.4 lib/chargebee/request.rb
chargebee-1.7.3 lib/chargebee/request.rb
chargebee-2.0.2 lib/chargebee/request.rb
chargebee-2.0.1 lib/chargebee/request.rb
chargebee-2.0.0 lib/chargebee/request.rb
chargebee-1.7.2 lib/chargebee/request.rb
chargebee-1.7.1 lib/chargebee/request.rb
chargebee-1.7.0 lib/chargebee/request.rb
chargebee-1.6.9 lib/chargebee/request.rb
chargebee-1.6.8 lib/chargebee/request.rb
chargebee-1.6.7 lib/chargebee/request.rb
chargebee-1.6.6 lib/chargebee/request.rb
chargebee-1.6.5 lib/chargebee/request.rb
chargebee-1.6.4 lib/chargebee/request.rb
chargebee-1.6.3 lib/chargebee/request.rb
chargebee-1.6.2 lib/chargebee/request.rb
chargebee-1.6.1 lib/chargebee/request.rb
chargebee-1.6.0 lib/chargebee/request.rb
chargebee-1.5.9 lib/chargebee/request.rb