Sha256: 191ed68cef77688842c3b8ea289e023bf55600fb8349a0054efefad52cfa04f6
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
module Fastbill module Automatic module Request class Info attr_accessor :service, :data def ==(other) @service == other.service && @data == other.data end def initialize(service, data) @service = service @data = data end def url url = "/api/#{API_VERSION}/api.php" url end def path_with_params(path, params) unless params.empty? encoded_params = URI.encode_www_form(params) [path, encoded_params].join("?") else path end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastbill-automatic-0.0.4 | lib/fastbill-automatic/request/info.rb |
fastbill-automatic-0.0.3 | lib/fastbill-automatic/request/info.rb |