class Fastbill::Automatic::Request::Info
Attributes
data[RW]
service[RW]
Public Class Methods
new(service, data)
click to toggle source
# File lib/fastbill-automatic/request/info.rb, line 11 def initialize(service, data) @service = service @data = data end
Public Instance Methods
==(other)
click to toggle source
# File lib/fastbill-automatic/request/info.rb, line 7 def ==(other) @service == other.service && @data == other.data end
path_with_params(path, params)
click to toggle source
# File lib/fastbill-automatic/request/info.rb, line 21 def path_with_params(path, params) unless params.empty? encoded_params = URI.encode_www_form(params) [path, encoded_params].join("?") else path end end
url()
click to toggle source
# File lib/fastbill-automatic/request/info.rb, line 16 def url url = "/api/#{API_VERSION}/api.php" url end