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.5.8 lib/chargebee/request.rb
chargebee-1.5.7 lib/chargebee/request.rb