Sha256: 307cf2ece494d4da68c794f21c1333c7da040cdefa67bd9be02f70459ff00d1b

Contents?: true

Size: 387 Bytes

Versions: 33

Compression:

Stored size: 387 Bytes

Contents

module ChargeBee
  class Request    

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
chargebee-1.5.6 lib/chargebee/request.rb
chargebee-1.5.5 lib/chargebee/request.rb
chargebee-1.5.4 lib/chargebee/request.rb
chargebee-1.5.3 lib/chargebee/request.rb
chargebee-1.5.2 lib/chargebee/request.rb
chargebee-1.5.1 lib/chargebee/request.rb
chargebee-1.5.0 lib/chargebee/request.rb
chargebee-1.4.9 lib/chargebee/request.rb
chargebee-1.4.8 lib/chargebee/request.rb
chargebee-1.4.7 lib/chargebee/request.rb
chargebee-1.4.6 lib/chargebee/request.rb
chargebee-1.4.5 lib/chargebee/request.rb
chargebee-1.4.4 lib/chargebee/request.rb
chargebee-1.4.3 lib/chargebee/request.rb
chargebee-1.4.2 lib/chargebee/request.rb
chargebee-1.4.1 lib/chargebee/request.rb
chargebee-1.4.0 lib/chargebee/request.rb
chargebee-1.3.9 lib/chargebee/request.rb
chargebee-1.3.8 lib/chargebee/request.rb
chargebee-1.3.7 lib/chargebee/request.rb